25 if (ld.
label != FLT_MAX)
27 cout << ld.
label <<
" ";
41 GD::foreach_feature<vw, uint64_t, print_feature>(*(p.
all), ec, *p.
all);
47 bool print_option =
false;
49 new_options.
add(
make_option(
"print", print_option).keep().help(
"print examples"));
55 auto p = scoped_calloc_or_throw<print>();
void print_feature(vw &, float value, uint64_t index)
base_learner * make_base(learner< T, E > &base)
LEARNER::base_learner * print_setup(options_i &options, vw &all)
virtual void add_and_parse(const option_group_definition &group)=0
void learn(print &p, LEARNER::base_learner &, example &ec)
learner< T, E > & init_learner(free_ptr< T > &dat, L *base, void(*learn)(T &, L &, E &), void(*predict)(T &, L &, E &), size_t ws, prediction_type::prediction_type_t pred_type)
option_group_definition & add(T &&op)
typed_option< T > make_option(std::string name, T &location)