提交 be9c6bdd 编写于 作者: V Vadim Pisarevsky

Merge pull request #3901 from StevenPuttemans:add_breakrule_cascade_accuracy

...@@ -218,7 +218,7 @@ bool CvCascadeClassifier::train( const string _cascadeDirName, ...@@ -218,7 +218,7 @@ bool CvCascadeClassifier::train( const string _cascadeDirName,
"Branch training terminated." << endl; "Branch training terminated." << endl;
break; break;
} }
if( (tempLeafFARate <= acceptanceRatioBreakValue) && (acceptanceRatioBreakValue < 0) ){ if( (tempLeafFARate <= acceptanceRatioBreakValue) && (acceptanceRatioBreakValue >= 0) ){
cout << "The required acceptanceRatio for the model has been reached to avoid overfitting of trainingdata. " cout << "The required acceptanceRatio for the model has been reached to avoid overfitting of trainingdata. "
"Branch training terminated." << endl; "Branch training terminated." << endl;
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册