From bdae962e13070ef3fbdd6fe2bae384663e799084 Mon Sep 17 00:00:00 2001 From: Maria Dimashova Date: Tue, 7 Jun 2011 12:28:18 +0000 Subject: [PATCH] removed constraint to max_iter in CvANN_MLP (#1110) --- modules/ml/src/ann_mlp.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/ml/src/ann_mlp.cpp b/modules/ml/src/ann_mlp.cpp index 6e412b6ebb..0b9db7175b 100644 --- a/modules/ml/src/ann_mlp.cpp +++ b/modules/ml/src/ann_mlp.cpp @@ -821,7 +821,6 @@ int CvANN_MLP::train( const CvMat* _inputs, const CvMat* _outputs, init_weights(); max_iter = params.term_crit.type & CV_TERMCRIT_ITER ? params.term_crit.max_iter : MAX_ITER; - max_iter = MIN( max_iter, MAX_ITER ); max_iter = MAX( max_iter, 1 ); epsilon = params.term_crit.type & CV_TERMCRIT_EPS ? params.term_crit.epsilon : DEFAULT_EPSILON; -- GitLab