summaryrefslogtreecommitdiff
path: root/dtrain/dtrain.cc
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2011-11-13 17:18:24 +0100
committerPatrick Simianer <p@simianer.de>2011-11-13 17:18:24 +0100
commit015bc0182017488e4917ae11e54fa0cf3533f3bc (patch)
tree6341db2cca6708e94677d9fb42a8b958e9bfa102 /dtrain/dtrain.cc
parentcc2fb8549e9729ecf2d61dc771a7c348feb106f6 (diff)
fix
Diffstat (limited to 'dtrain/dtrain.cc')
-rw-r--r--dtrain/dtrain.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dtrain/dtrain.cc b/dtrain/dtrain.cc
index 79047fd9..ca5f0c5e 100644
--- a/dtrain/dtrain.cc
+++ b/dtrain/dtrain.cc
@@ -374,7 +374,7 @@ main(int argc, char** argv)
lambdas.plus_eq_v_times_s(diff_vec, eta);
rank_errors++;
}
- if (margin < 1) margin_violations++;
+ if (it->first.model - it->second.model < 1) margin_violations++;
} else {
// SVM
score_t margin = it->first.model - it->second.model;