removed constraint to max_iter in CvANN_MLP (#1110)

This commit is contained in:
Maria Dimashova 2011-06-07 12:28:18 +00:00
parent 07e2deccb9
commit bdae962e13

View File

@ -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;