diff options
author | Patrick Simianer <p@simianer.de> | 2011-10-20 02:20:43 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2011-10-20 02:20:43 +0200 |
commit | 082b6c77e0703ccd1c85947828c33d4b0eef20f0 (patch) | |
tree | b484bd0c4216525690de8b14fb654c9581a300c2 /dtrain/kbestget.h | |
parent | 77b4d84faf291a7deff116030f9bc0c70e79409a (diff) |
really merged fix
Diffstat (limited to 'dtrain/kbestget.h')
-rw-r--r-- | dtrain/kbestget.h | 7 |
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); |