From a27f7c022be6196afce81d7020a6d7501b28684f Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Fri, 8 Apr 2016 14:14:20 +0200
Subject: dtrain: fix Liang's score
---
training/dtrain/score.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
(limited to 'training/dtrain/score.h')
diff --git a/training/dtrain/score.h b/training/dtrain/score.h
index a9c60b64..748b3317 100644
--- a/training/dtrain/score.h
+++ b/training/dtrain/score.h
@@ -356,14 +356,14 @@ class LiangBleuScorer : public Scorer
break;
} else {
weight_t i_score = log((weight_t)counts.clipped[i]/counts.sum[i]);
- for (size_t j=i; j < M; j++) {
+ for (size_t j=i; j