Merge pull request #5285 from ilya-lavrenov:ml5

pull/5297/head
Alexander Alekhin 9 years ago
commit 73a8e65cbd
  1. 2
      modules/ml/src/gbt.cpp

@ -259,7 +259,7 @@ CvGBTrees::train( const CvMat* _train_data, int _tflag,
for (int i=1; i<n; ++i) for (int i=1; i<n; ++i)
{ {
int k = 0; int k = 0;
while ((int(orig_response->data.fl[i]) - class_labels->data.i[k]) && (k<j)) while ((k<j) && (int(orig_response->data.fl[i]) - class_labels->data.i[k]))
k++; k++;
if (k == j) if (k == j)
{ {

Loading…
Cancel
Save