From 85aa5ba3ece9b5f49c5b5805e1100c72ccd14282 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Thu, 28 Nov 2013 19:40:24 +0100 Subject: fixed PRO sampling --- training/dtrain/pairsampling.h | 1 + 1 file changed, 1 insertion(+) (limited to 'training/dtrain') diff --git a/training/dtrain/pairsampling.h b/training/dtrain/pairsampling.h index 3f67e209..1a3c498c 100644 --- a/training/dtrain/pairsampling.h +++ b/training/dtrain/pairsampling.h @@ -112,6 +112,7 @@ _PRO_cmp_pair_by_diff_d(pair a, pair b inline void PROsampling(vector* s, vector >& training, score_t threshold, unsigned max, bool _unused=false, float _also_unused=0) { + sort(s->begin(), s->end(), cmp_hyp_by_score_d); unsigned max_count = 5000, count = 0, sz = s->size(); bool b = false; for (unsigned i = 0; i < sz-1; i++) { -- cgit v1.2.3