From 3b9f1972dd2c0874c5845b68f9bd7f955b6d67eb Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Mon, 27 May 2013 20:56:57 +0200 Subject: fix --- training/dtrain/dtrain.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/training/dtrain/dtrain.cc b/training/dtrain/dtrain.cc index e1d5a2d4..0ee2f124 100644 --- a/training/dtrain/dtrain.cc +++ b/training/dtrain/dtrain.cc @@ -378,7 +378,7 @@ main(int argc, char** argv) margin = std::numeric_limits::max(); } else { rank_error = it->first.model <= it->second.model; - margin = fabs(fabs(it->first.model) - fabs(it->second.model)); + margin = fabs(it->first.model - it->second.model); if (!rank_error && margin < loss_margin) margin_violations++; } if (rank_error) rank_errors++; -- cgit v1.2.3