Commit bdae962e authored by Maria Dimashova's avatar Maria Dimashova

removed constraint to max_iter in CvANN_MLP (#1110)

parent 07e2decc
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment