summaryrefslogtreecommitdiff
path: root/dtrain/pairsampling.h
diff options
context:
space:
mode:
authorPatrick Simianer <simianer@cl.uni-heidelberg.de>2012-04-26 11:36:49 +0200
committerPatrick Simianer <simianer@cl.uni-heidelberg.de>2012-04-26 11:36:49 +0200
commit28806638345e60bd442bf5fa8e7471f9115b0296 (patch)
tree1c304a800ac46f7d0f42ffdfb227571c80b56700 /dtrain/pairsampling.h
parent273abce33542fb991e7188c14cd6419870cdb2bd (diff)
remove obsolete stuff
Diffstat (limited to 'dtrain/pairsampling.h')
-rw-r--r--dtrain/pairsampling.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/dtrain/pairsampling.h b/dtrain/pairsampling.h
index 1fc5b8a0..93c0630a 100644
--- a/dtrain/pairsampling.h
+++ b/dtrain/pairsampling.h
@@ -46,6 +46,7 @@ part108010(vector<ScoredHyp>* s, vector<pair<ScoredHyp,ScoredHyp> >& training, s
unsigned sz = s->size();
unsigned slice = 10;
unsigned sep = sz%slice;
+ cout << "sep " << sep <<endl;
if (sep == 0) sep = sz/slice;
for (unsigned i = 0; i < sep; i++) {
for (unsigned j = sep; j < sz; j++) {
@@ -107,7 +108,7 @@ PROsampling(vector<ScoredHyp>* s, vector<pair<ScoredHyp,ScoredHyp> >& training,
}
if (training.size() > 50) {
sort(training.begin(), training.end(), _PRO_cmp_pair_by_diff);
- training.erase(training.begin()+50, training.end());
+ training.erase(training.begin()+50, training.end());
}
return;
}