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:
Diffstat (limited to 'vowpalwabbit/cb_algs.cc')
-rw-r--r--vowpalwabbit/cb_algs.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/vowpalwabbit/cb_algs.cc b/vowpalwabbit/cb_algs.cc
index 2d8a2252..c676f547 100644
--- a/vowpalwabbit/cb_algs.cc
+++ b/vowpalwabbit/cb_algs.cc
@@ -496,7 +496,7 @@ namespace CB_ALGS
*all.file_options << " --cb_type dr";
}
- if (!vm.count("csoaa"))
+ if (count(all.args.begin(), all.args.end(),"--csoaa") == 0)
{
all.args.push_back("--csoaa");
stringstream ss;
@@ -524,7 +524,7 @@ namespace CB_ALGS
}
// preserve the increment of the base learner since we are
// _adding_ to the number of problems rather than multiplying.
- l->increment = all.l->increment;
+ l->increment = base->increment;
l->set_init_driver(init_driver);
l->set_finish(finish);