Vowpal Wabbit
|
Go to the source code of this file.
Classes | |
struct | mf |
Functions | |
template<bool cache_sub_predictions> | |
void | predict (mf &data, single_learner &base, example &ec) |
void | learn (mf &data, single_learner &base, example &ec) |
void | finish (mf &o) |
base_learner * | mf_setup (options_i &options, vw &all) |
void finish | ( | mf & | o | ) |
void learn | ( | mf & | data, |
single_learner & | base, | ||
example & | ec | ||
) |
Definition at line 111 of file mf.cc.
References v_array< T >::clear(), copy_array(), features::deep_copy_from(), example_predict::feature_space, example_predict::indices, example::pred, v_array< T >::push_back(), polyprediction::scalar, features::size(), example::updated_prediction, and features::values.
Referenced by mf_setup().
base_learner* mf_setup | ( | options_i & | options, |
vw & | all | ||
) |
Definition at line 195 of file mf.cc.
References VW::config::options_i::add_and_parse(), LEARNER::as_singleline(), finish(), LEARNER::init_learner(), learn(), LEARNER::make_base(), VW::config::make_option(), vw::pairs, vw::random_positive_weights, LEARNER::learner< T, E >::set_finish(), setup_base(), and VW::config::options_i::was_supplied().
Referenced by parse_reductions().
void predict | ( | mf & | data, |
single_learner & | base, | ||
example & | ec | ||
) |
Definition at line 50 of file mf.cc.
References mf::all, v_array< T >::clear(), copy_array(), example_predict::feature_space, GD::finalize_prediction(), example_predict::indices, mf::pairs, example::partial_prediction, example::pred, LEARNER::learner< T, E >::predict(), mf::predict_indices, v_array< T >::push_back(), mf::rank, v_array< T >::resize(), polyprediction::scalar, vw::sd, and mf::sub_predictions.