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/print.cc')
-rw-r--r--vowpalwabbit/print.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/vowpalwabbit/print.cc b/vowpalwabbit/print.cc
index d0dc2765..321a8710 100644
--- a/vowpalwabbit/print.cc
+++ b/vowpalwabbit/print.cc
@@ -40,11 +40,15 @@ namespace PRINT
GD::foreach_feature<vw, print_feature>(*(p.all), ec, *p.all);
cout << endl;
}
-
+
LEARNER::base_learner* setup(vw& all)
{
+ new_options(all, "Print options") ("print","print examples");
+ if(missing_required(all)) return NULL;
+
print& p = calloc_or_die<print>();
p.all = &all;
+
size_t length = ((size_t)1) << all.num_bits;
all.reg.weight_mask = (length << all.reg.stride_shift) - 1;
all.reg.stride_shift = 0;