diff options
author | John Langford <jl@hunch.net> | 2014-03-27 01:57:43 +0400 |
---|---|---|
committer | John Langford <jl@hunch.net> | 2014-03-27 01:57:43 +0400 |
commit | c7da88a24d53e2189e807c65ed562034c21f7f4e (patch) | |
tree | 606120afba1dbba488b7615302d8d993493aac8f /vowpalwabbit/parse_args.cc | |
parent | 5da6504dd52ca3bb6021d64e31e4a05610d74d41 (diff) |
factor cb parsing out of cb algorithms
Diffstat (limited to 'vowpalwabbit/parse_args.cc')
-rw-r--r-- | vowpalwabbit/parse_args.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vowpalwabbit/parse_args.cc b/vowpalwabbit/parse_args.cc index f13edd15..26ad3b24 100644 --- a/vowpalwabbit/parse_args.cc +++ b/vowpalwabbit/parse_args.cc @@ -25,6 +25,7 @@ license as described in the file LICENSE. #include "csoaa.h" #include "wap.h" #include "cb.h" +#include "cb_algs.h" #include "scorer.h" #include "searn.h" #include "bfgs.h" @@ -934,7 +935,7 @@ vw* parse_args(int argc, char *argv[]) got_cs = true; } - all->l = CB::setup(*all, to_pass_further, vm, vm_file); + all->l = CB_ALGS::setup(*all, to_pass_further, vm, vm_file); got_cb = true; } @@ -952,7 +953,7 @@ vw* parse_args(int argc, char *argv[]) if (!got_cb) { if( vm_file.count("cbify") ) vm.insert(pair<string,po::variable_value>(string("cb"),vm_file["cbify"])); else vm.insert(pair<string,po::variable_value>(string("cb"),vm["cbify"])); - all->l = CB::setup(*all, to_pass_further, vm, vm_file); + all->l = CB_ALGS::setup(*all, to_pass_further, vm, vm_file); got_cb = true; } |