summaryrefslogtreecommitdiff
path: root/training/dtrain/dtrain.cc
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2013-05-27 20:56:57 +0200
committerPatrick Simianer <p@simianer.de>2013-05-27 20:56:57 +0200
commit3b9f1972dd2c0874c5845b68f9bd7f955b6d67eb (patch)
treefa5b6c9a1d7070e11232f0bebd2b2134822b88fa /training/dtrain/dtrain.cc
parent97c31f91535c1f5e6fd9caa3ba665e554534be7a (diff)
fix
Diffstat (limited to 'training/dtrain/dtrain.cc')
-rw-r--r--training/dtrain/dtrain.cc2
1 files changed, 1 insertions, 1 deletions
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<float>::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++;