Vowpal Wabbit
|
Go to the source code of this file.
Classes | |
struct | multi_oaa |
Functions | |
template<bool is_learn> | |
void | predict_or_learn (multi_oaa &o, LEARNER::single_learner &base, example &ec) |
void | finish_example (vw &all, multi_oaa &, example &ec) |
LEARNER::base_learner * | multilabel_oaa_setup (options_i &options, vw &all) |
Definition at line 52 of file multilabel_oaa.cc.
References VW::finish_example(), and MULTILABEL::output_example().
LEARNER::base_learner* multilabel_oaa_setup | ( | options_i & | options, |
vw & | all | ||
) |
Definition at line 58 of file multilabel_oaa.cc.
References VW::config::options_i::add_and_parse(), LEARNER::as_singleline(), label_parser::delete_label, vw::delete_prediction, VW::finish_example(), LEARNER::init_learner(), vw::label_type, parser::lp, LEARNER::make_base(), VW::config::make_option(), label_type::multi, MULTILABEL::multilabel, prediction_type::multilabels, vw::p, LEARNER::learner< T, E >::set_finish_example(), setup_base(), and VW::config::options_i::was_supplied().
Referenced by parse_reductions().
void predict_or_learn | ( | multi_oaa & | o, |
LEARNER::single_learner & | base, | ||
example & | ec | ||
) |
Definition at line 19 of file multilabel_oaa.cc.
References v_array< T >::clear(), multi_oaa::k, example::l, label_data::label, MULTILABEL::labels::label_v, LEARNER::learner< T, E >::learn(), prediction_type::multilabels, polylabel::multilabels, polyprediction::multilabels, example::pred, LEARNER::learner< T, E >::predict(), v_array< T >::push_back(), polyprediction::scalar, polylabel::simple, and v_array< T >::size().