summaryrefslogtreecommitdiff
path: root/train.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'train.cpp')
-rw-r--r--train.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/train.cpp b/train.cpp
index 0d84e24..039c93a 100644
--- a/train.cpp
+++ b/train.cpp
@@ -72,7 +72,7 @@ int predict(DataProvider &dp) {
rank_CMC(D,L,cmc);
}
- if (vm.count("output") || !vm.count("validate"))
+ if (vm.count("output") && vm.count("predict"))
for (int i=0; i<L.size();++i)
*ot<<L[i]<<endl;
}