diff options
author | John Langford <jl@hunch.net> | 2014-01-24 22:41:11 +0400 |
---|---|---|
committer | John Langford <jl@hunch.net> | 2014-01-24 22:41:11 +0400 |
commit | f84e66bf58b49b2bfb42f4d6f0b42b28c8290984 (patch) | |
tree | 03788a183df35c75dfae2489c21d4e6d230b372b /vowpalwabbit/csoaa.cc | |
parent | d736e17843a0a254ae8b7a14d209c19d8be1a631 (diff) |
fix cs indexing bug, fix cb indexing bug, add cb tests
Diffstat (limited to 'vowpalwabbit/csoaa.cc')
-rw-r--r-- | vowpalwabbit/csoaa.cc | 4 |
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)) { |