fixed trim_weights in boosting (thanks to frankman for the patch; ticket #1231)

pull/13383/head
Vadim Pisarevsky 14 years ago
parent 216fbc004a
commit b700521b95
  1. 2
      modules/ml/src/boost.cpp

@ -1439,7 +1439,7 @@ CvBoost::trim_weights()
for( i = 0; i < count; i++ ) for( i = 0; i < count; i++ )
{ {
double w = weak_eval->data.db[i]; double w = weak_eval->data.db[i];
if( sum > w ) if( sum <= 0 )
break; break;
sum -= w; sum -= w;
} }

Loading…
Cancel
Save