Commit 12b2b4d39336747eb1eab1e31fe7846e507354e9
1 parent
3bccd4be
Changed leaveOneOut to leaveOneImageOut
Showing
1 changed file
with
4 additions
and
4 deletions
openbr/plugins/validate.cpp
| @@ -19,9 +19,9 @@ class CrossValidateTransform : public MetaTransform | @@ -19,9 +19,9 @@ class CrossValidateTransform : public MetaTransform | ||
| 19 | { | 19 | { |
| 20 | Q_OBJECT | 20 | Q_OBJECT |
| 21 | Q_PROPERTY(QString description READ get_description WRITE set_description RESET reset_description STORED false) | 21 | Q_PROPERTY(QString description READ get_description WRITE set_description RESET reset_description STORED false) |
| 22 | - Q_PROPERTY(bool leaveOneOut READ get_leaveOneOut WRITE set_leaveOneOut RESET reset_leaveOneOut STORED false) | 22 | + Q_PROPERTY(bool leaveOneImageOut READ get_leaveOneImageOut WRITE set_leaveOneImageOut RESET reset_leaveOneImageOut STORED false) |
| 23 | BR_PROPERTY(QString, description, "Identity") | 23 | BR_PROPERTY(QString, description, "Identity") |
| 24 | - BR_PROPERTY(bool, leaveOneOut, false) | 24 | + BR_PROPERTY(bool, leaveOneImageOut, false) |
| 25 | 25 | ||
| 26 | QList<br::Transform*> transforms; | 26 | QList<br::Transform*> transforms; |
| 27 | 27 | ||
| @@ -49,10 +49,10 @@ class CrossValidateTransform : public MetaTransform | @@ -49,10 +49,10 @@ class CrossValidateTransform : public MetaTransform | ||
| 49 | int j = partitionedData.size()-1; | 49 | int j = partitionedData.size()-1; |
| 50 | while (j>=0) { | 50 | while (j>=0) { |
| 51 | // Remove all templates belonging to partition i | 51 | // Remove all templates belonging to partition i |
| 52 | - // if leaveOneOut is true, | 52 | + // if leaveOneImageOut is true, |
| 53 | // and i is greater than the number of images for a particular subject | 53 | // and i is greater than the number of images for a particular subject |
| 54 | // even if the partitions are different | 54 | // even if the partitions are different |
| 55 | - if (leaveOneOut) { | 55 | + if (leaveOneImageOut) { |
| 56 | const QString label = partitionedData.at(j).file.get<QString>("Label"); | 56 | const QString label = partitionedData.at(j).file.get<QString>("Label"); |
| 57 | QList<int> subjectIndices = partitionedData.find("Label",label); | 57 | QList<int> subjectIndices = partitionedData.find("Label",label); |
| 58 | QList<int> removed; | 58 | QList<int> removed; |