Commit 0bcb4058f5dea947a4ab7c05b8723eaaa9a51e60
1 parent
068b72ad
CrossValidation decrement bug fix
Showing
1 changed file
with
1 additions
and
0 deletions
openbr/plugins/validate.cpp
| @@ -80,6 +80,7 @@ class CrossValidateTransform : public MetaTransform | @@ -80,6 +80,7 @@ class CrossValidateTransform : public MetaTransform | ||
| 80 | } | 80 | } |
| 81 | } else if (partitions[j] == i) { | 81 | } else if (partitions[j] == i) { |
| 82 | partitionedData.removeAt(j); | 82 | partitionedData.removeAt(j); |
| 83 | + j--; | ||
| 83 | } else j--; | 84 | } else j--; |
| 84 | } | 85 | } |
| 85 | // Train on the remaining templates | 86 | // Train on the remaining templates |