diff options
author | Patrick Simianer <p@simianer.de> | 2013-05-27 20:56:57 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2013-05-27 20:56:57 +0200 |
commit | 4ee4f74ae8cf88fd2335267c26cbfb73f3ef8f28 (patch) | |
tree | 3f19544712d44b6267c6fc86cd9ae6c5f1f6f4b6 | |
parent | 33fe94f08703c92dad5c79608d12d2300fbe86f7 (diff) |
fix
-rw-r--r-- | training/dtrain/dtrain.cc | 2 |
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++; |