Vowpal Wabbit
|
Go to the source code of this file.
Classes | |
struct | scorer |
Functions | |
template<bool is_learn, float(*)(float in) link> | |
void | predict_or_learn (scorer &s, LEARNER::single_learner &base, example &ec) |
template<float(*)(float in) link> | |
void | multipredict (scorer &, LEARNER::single_learner &base, example &ec, size_t count, size_t, polyprediction *pred, bool finalize_predictions) |
void | update (scorer &s, LEARNER::single_learner &base, example &ec) |
float | logistic (float in) |
float | glf1 (float in) |
float | id (float in) |
LEARNER::base_learner * | scorer_setup (options_i &options, vw &all) |
|
inline |
|
inline |
Definition at line 51 of file scorer.cc.
Referenced by create_circuit(), ect_predict(), ect_train(), Search::foreach_action_from_cache(), CCB::inject_slot_id(), TC_parser< audit >::maybeFeature(), parse_feature_tweaks(), VW::SpanningTree::Run(), GraphTask::run_bfs(), and Search::predictor::set_learner_id().
|
inline |
|
inline |
Definition at line 29 of file scorer.cc.
References c, LEARNER::learner< T, E >::multipredict(), and prediction_type::scalar.
void predict_or_learn | ( | scorer & | s, |
LEARNER::single_learner & | base, | ||
example & | ec | ||
) |
Definition at line 14 of file scorer.cc.
References scorer::all, loss_function::getLoss(), example::l, label_data::label, LEARNER::learner< T, E >::learn(), example::loss, vw::loss, example::pred, LEARNER::learner< T, E >::predict(), polyprediction::scalar, vw::sd, vw::set_minmax, polylabel::simple, and example::weight.
LEARNER::base_learner* scorer_setup | ( | options_i & | options, |
vw & | all | ||
) |
Definition at line 53 of file scorer.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::scorer, LEARNER::learner< T, E >::set_multipredict(), LEARNER::learner< T, E >::set_update(), setup_base(), THROW, and update().
Referenced by parse_reductions().
void update | ( | scorer & | s, |
LEARNER::single_learner & | base, | ||
example & | ec | ||
) |
Definition at line 36 of file scorer.cc.
References scorer::all, example::l, label_data::label, vw::sd, vw::set_minmax, polylabel::simple, and LEARNER::learner< T, E >::update().
Referenced by scorer_setup().