Commit 3914e480d9b7691a1f579742e31e1473ac921463

Authored by Josh Klontz
1 parent 76bf186b

cross validation bug fix

Showing 1 changed file with 1 additions and 1 deletions
openbr/plugins/validate.cpp
... ... @@ -56,7 +56,7 @@ class CrossValidateTransform : public MetaTransform
56 56 // If the src partition is greater than the number of training partitions,
57 57 // assume that projection should be done using the same training data for all partitions.
58 58 int partition = src.file.get<int>("Partition", 0);
59   - if (partition >= transforms.size()-1) partition = 0;
  59 + if (partition >= transforms.size()) partition = 0;
60 60  
61 61 transforms[partition]->project(src, dst);
62 62 }
... ...