Commit 796c15d3 authored by StevenPuttemans's avatar StevenPuttemans

fixing wrong equation in accuracy break rule

parent 7e35f76d
......@@ -218,7 +218,7 @@ bool CvCascadeClassifier::train( const string _cascadeDirName,
"Branch training terminated." << endl;
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. "
"Branch training terminated." << endl;
break;
......
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