Commit e73c0750c57fe2df03ff7c839bde9a2771e39da5

Authored by Scott Klum
1 parent 8ac22a78

Added comment about allPartitions flag

Showing 1 changed file with 4 additions and 0 deletions
openbr/plugins/validate.cpp
@@ -100,6 +100,10 @@ class CrossValidateTransform : public MetaTransform @@ -100,6 +100,10 @@ class CrossValidateTransform : public MetaTransform
100 100
101 void project(const Template &src, Template &dst) const 101 void project(const Template &src, Template &dst) const
102 { 102 {
  103 + // Remember, the partition should never be -1
  104 + // since it is assumed that the allPartitions
  105 + // flag is only used during comparison
  106 + // (i.e. only used when making a mask)
103 if (src.file.getBool("Train", false)) dst = src; 107 if (src.file.getBool("Train", false)) dst = src;
104 else { 108 else {
105 // If we want to duplicate templates but use the same training data 109 // If we want to duplicate templates but use the same training data