diff options
author | Patrick Simianer <p@simianer.de> | 2011-10-19 21:41:00 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2011-10-19 21:41:00 +0200 |
commit | 18ba09140e937bde6c94247640484fe44f7cd665 (patch) | |
tree | ddec8b18716aaae6b87469ed82e89453903403b1 /dtrain/kbestget.h | |
parent | ef2df950520a47ca7011736648334eedeae5297a (diff) |
debug
Diffstat (limited to 'dtrain/kbestget.h')
-rw-r--r-- | dtrain/kbestget.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/dtrain/kbestget.h b/dtrain/kbestget.h index 4aadee7a..98f289eb 100644 --- a/dtrain/kbestget.h +++ b/dtrain/kbestget.h @@ -107,8 +107,10 @@ struct KBestGetter : public HypSampler ScoredHyp h; h.w = d->yield; h.f = d->feature_values; - h.model = d->score; - cout << i << ". "<< h.model << endl; + h.model = d->score.as_float(); + // DEBUG + cout << i+1 << ". "<< h.model << endl; + // /DEBUG h.rank = i; h.score = scorer_->Score(h.w, *ref_, i); s_.push_back(h); @@ -127,7 +129,7 @@ struct KBestGetter : public HypSampler ScoredHyp h; h.w = d->yield; h.f = d->feature_values; - h.model = -1*log(d->score); + h.model = d->score.as_float(); h.rank = i; h.score = scorer_->Score(h.w, *ref_, i); s_.push_back(h); |