Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Langford <jl@hunch.net>2014-01-24 22:41:11 +0400
committerJohn Langford <jl@hunch.net>2014-01-24 22:41:11 +0400
commitf84e66bf58b49b2bfb42f4d6f0b42b28c8290984 (patch)
tree03788a183df35c75dfae2489c21d4e6d230b372b /vowpalwabbit/csoaa.cc
parentd736e17843a0a254ae8b7a14d209c19d8be1a631 (diff)
fix cs indexing bug, fix cb indexing bug, add cb tests
Diffstat (limited to 'vowpalwabbit/csoaa.cc')
-rw-r--r--vowpalwabbit/csoaa.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/vowpalwabbit/csoaa.cc b/vowpalwabbit/csoaa.cc
index 0e97d7ac..148c5550 100644
--- a/vowpalwabbit/csoaa.cc
+++ b/vowpalwabbit/csoaa.cc
@@ -339,10 +339,10 @@ namespace CSOAA {
simple_temp.weight = 1.;
}
- base.learn(ec, i);
+ base.learn(ec, i-1);
}
else
- base.predict(ec, i);
+ base.predict(ec, i-1);
cl->partial_prediction = ec.partial_prediction;
if (ec.partial_prediction < score || (ec.partial_prediction == score && i < prediction)) {