diff options
author | Patrick Simianer <p@simianer.de> | 2015-10-16 12:37:08 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2015-10-16 12:37:08 +0200 |
commit | 9cc64edcdbeb463b27c3ef37c892cc404c5cf8b4 (patch) | |
tree | 1f952f1003261f2f501b7832b5490f5fc081f769 /training/dtrain/sample.h | |
parent | 288263494237aab8b7628b22b03f9b70ac93fb56 (diff) |
dtrain: fixes
Diffstat (limited to 'training/dtrain/sample.h')
-rw-r--r-- | training/dtrain/sample.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/training/dtrain/sample.h b/training/dtrain/sample.h index bccc29b7..860904fd 100644 --- a/training/dtrain/sample.h +++ b/training/dtrain/sample.h @@ -115,7 +115,7 @@ struct KSampler : public HypSampler effective_size++; feature_count += sample.back().f.size(); } - sort(sample.begin(), sample.end(), [](Hyp& first, Hyp& second) { + sort(sample.begin(), sample.end(), [](Hyp first, Hyp second) { return first.model > second.model; }); for (unsigned i=0; i<sample.size(); i++) { |