summaryrefslogtreecommitdiff
path: root/dtrain/kbestget.h
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2011-10-20 02:20:43 +0200
committerPatrick Simianer <p@simianer.de>2011-10-20 02:20:43 +0200
commit78baccbb4231bb84a456702d4f574f8e601a8182 (patch)
tree3416818c758d5ece4e71fe522c571e75ea04f100 /dtrain/kbestget.h
parentf8557dd278ad8fb24ccbc47121e3255b7000016b (diff)
really merged fix
Diffstat (limited to 'dtrain/kbestget.h')
-rw-r--r--dtrain/kbestget.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/dtrain/kbestget.h b/dtrain/kbestget.h
index 98f289eb..abe657d0 100644
--- a/dtrain/kbestget.h
+++ b/dtrain/kbestget.h
@@ -107,10 +107,7 @@ struct KBestGetter : public HypSampler
ScoredHyp h;
h.w = d->yield;
h.f = d->feature_values;
- h.model = d->score.as_float();
- // DEBUG
- cout << i+1 << ". "<< h.model << endl;
- // /DEBUG
+ h.model = log(d->score);
h.rank = i;
h.score = scorer_->Score(h.w, *ref_, i);
s_.push_back(h);
@@ -129,7 +126,7 @@ struct KBestGetter : public HypSampler
ScoredHyp h;
h.w = d->yield;
h.f = d->feature_values;
- h.model = d->score.as_float();
+ h.model = log(d->score);
h.rank = i;
h.score = scorer_->Score(h.w, *ref_, i);
s_.push_back(h);