diff options
Diffstat (limited to 'vowpalwabbit/scorer.cc')
-rw-r--r-- | vowpalwabbit/scorer.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vowpalwabbit/scorer.cc b/vowpalwabbit/scorer.cc index c7e4519b..fa9ea417 100644 --- a/vowpalwabbit/scorer.cc +++ b/vowpalwabbit/scorer.cc @@ -31,17 +31,17 @@ namespace Scorer { float id(float in) { return in; } - LEARNER::base_learner* setup(vw& all, po::variables_map& vm) + LEARNER::base_learner* setup(vw& all) { po::options_description opts("Link options"); opts.add_options() ("link", po::value<string>()->default_value("identity"), "Specify the link function: identity, logistic or glf1"); - vm = add_options(all, opts); - + add_options(all, opts); + po::variables_map& vm = all.vm; scorer& s = calloc_or_die<scorer>(); s.all = &all; - LEARNER::base_learner* base = setup_base(all,vm); + LEARNER::base_learner* base = setup_base(all); LEARNER::learner<scorer>* l; string link = vm["link"].as<string>(); |