From c57425bbdbb9cbc437ed6cd2774702ecb2617d22 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Sun, 13 Nov 2011 17:18:24 +0100 Subject: fix --- dtrain/dtrain.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dtrain/dtrain.cc') 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; -- cgit v1.2.3