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>2015-01-02 21:09:45 +0300
committerJohn Langford <jl@hunch.net>2015-01-02 21:09:45 +0300
commit8784ea7a1bb34e3dca02e6571cacda1ffe38aafa (patch)
tree8e00ad57ca51a776372ed32b28608633acd863aa /vowpalwabbit/scorer.cc
parenta51dac423995feb3d8ac57f63d7c42015fcce157 (diff)
simpler options
Diffstat (limited to 'vowpalwabbit/scorer.cc')
-rw-r--r--vowpalwabbit/scorer.cc8
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>();