Vowpal Wabbit
|
Go to the source code of this file.
Classes | |
struct | interact |
Functions | |
bool | contains_valid_namespaces (vw &all, features &f_src1, features &f_src2, interact &in) |
void | multiply (features &f_dest, features &f_src2, interact &in) |
template<bool is_learn, bool print_all> | |
void | predict_or_learn (interact &in, LEARNER::single_learner &base, example &ec) |
LEARNER::base_learner * | interact_setup (options_i &options, vw &all) |
Definition at line 25 of file interact.cc.
References interact::n1, interact::n2, features::size(), vw::trace_message, and features::values.
Referenced by predict_or_learn().
LEARNER::base_learner* interact_setup | ( | options_i & | options, |
vw & | all | ||
) |
Definition at line 156 of file interact.cc.
References VW::config::option_group_definition::add(), VW::config::options_i::add_and_parse(), LEARNER::as_singleline(), LEARNER::init_learner(), LEARNER::make_base(), VW::config::make_option(), vw::quiet, setup_base(), and VW::config::options_i::was_supplied().
Referenced by parse_reductions().
Definition at line 46 of file interact.cc.
References interact::all, features::clear(), interact::feat_store, features::indicies, parameters::mask(), features::push_back(), features::size(), features::values, and vw::weights.
Referenced by predict_or_learn().
void predict_or_learn | ( | interact & | in, |
LEARNER::single_learner & | base, | ||
example & | ec | ||
) |
Definition at line 97 of file interact.cc.
References interact::all, contains_valid_namespaces(), v_array< T >::decr(), features::deep_copy_from(), interact::feat_store, example_predict::feature_space, v_array< T >::incr(), example_predict::indices, LEARNER::learner< T, E >::learn(), multiply(), interact::n1, interact::n2, interact::num_features, example::num_features, LEARNER::learner< T, E >::predict(), v_array< T >::size(), features::size(), features::sum_feat_sq, interact::total_sum_feat_sq, and example::total_sum_feat_sq.