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>2014-02-03 18:29:28 +0400
committerJohn Langford <jl@hunch.net>2014-02-03 18:29:28 +0400
commit75b165ac7474c561f7c4856eb6f06b80d2977020 (patch)
tree53b8ad48da6961c12f0edc1d6e2f7b394aef04bf /vowpalwabbit/parse_args.cc
parent996ca6b851cd6114f584dd22e45fa34e13bacefc (diff)
add print example base learner
Diffstat (limited to 'vowpalwabbit/parse_args.cc')
-rw-r--r--vowpalwabbit/parse_args.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/vowpalwabbit/parse_args.cc b/vowpalwabbit/parse_args.cc
index 4218c36f..426ca859 100644
--- a/vowpalwabbit/parse_args.cc
+++ b/vowpalwabbit/parse_args.cc
@@ -29,6 +29,7 @@ license as described in the file LICENSE.
#include "bfgs.h"
#include "lda_core.h"
#include "noop.h"
+#include "print.h"
#include "gd_mf.h"
#include "mf.h"
#include "vw.h"
@@ -266,7 +267,8 @@ vw* parse_args(int argc, char *argv[])
("help,h","Look here: http://hunch.net/~vw/ and click on Tutorial.")
("version","Version information")
("random_seed", po::value<size_t>(&random_seed), "seed random number generator")
- ("noop","do no learning") ;
+ ("noop","do no learning")
+ ("print","print examples");
//po::positional_options_description p;
// Be friendly: if -d was left out, treat positional param as data file
@@ -751,6 +753,12 @@ vw* parse_args(int argc, char *argv[])
if (vm.count("noop"))
all->l = NOOP::setup(*all);
+ if (vm.count("print"))
+ {
+ all->l = PRINT::setup(*all);
+ all->reg.stride = 1;
+ }
+
if (!vm.count("new_mf") && all->rank > 0)
all->l = GDMF::setup(*all);