Vowpal Wabbit
|
Classes | |
struct | cb |
Functions | |
bool | know_all_cost_example (CB::label &ld) |
template<bool is_learn> | |
void | predict_or_learn (cb &data, single_learner &base, example &ec) |
void | predict_eval (cb &, single_learner &, example &) |
void | learn_eval (cb &data, single_learner &, example &ec) |
void | output_example (vw &all, cb &data, example &ec, CB::label &ld) |
void | finish_example (vw &all, cb &c, example &ec) |
void | eval_finish_example (vw &all, cb &c, example &ec) |
template<bool is_learn> | |
float | get_cost_pred (LEARNER::single_learner *scorer, CB::cb_class *known_cost, example &ec, uint32_t index, uint32_t base) |
float | get_cost_estimate (CB::cb_class *observation, uint32_t action, float offset=0.) |
float | get_cost_estimate (CB::cb_class *observation, COST_SENSITIVE::label &scores, uint32_t action) |
float | get_cost_estimate (ACTION_SCORE::action_score &a_s, float cost, uint32_t action, float offset=0.) |
bool | example_is_newline_not_header (example const &ec) |
Definition at line 125 of file cb_algs.cc.
References polylabel::cb_eval, CB_EVAL::label::event, VW::finish_example(), example::l, and output_example().
Referenced by cb_algs_setup().
|
inline |
Definition at line 80 of file cb_algs.h.
References CB::ec_is_example_header(), and example_is_newline().
Referenced by copy_example_to_adf(), and GEN_CS::gen_cs_example_dr().
Definition at line 119 of file cb_algs.cc.
References polylabel::cb, VW::finish_example(), example::l, and output_example().
Referenced by cb_algs_setup().
|
inline |
Definition at line 58 of file cb_algs.h.
References CB::cb_class::action, CB::cb_class::cost, and CB::cb_class::probability.
Referenced by MWT::finish_example(), get_cost_estimate(), EXPLORE_EVAL::output_example(), VW::cb_explore_adf::cb_explore_adf_base< ExploreType >::output_example(), output_example(), CB_EXPLORE::output_example(), CCB::output_example(), MWT::predict_or_learn(), and CB_ADF::cb_adf::update_statistics().
|
inline |
Definition at line 65 of file cb_algs.h.
References COST_SENSITIVE::label::costs, and get_cost_estimate().
|
inline |
Definition at line 73 of file cb_algs.h.
References ACTION_SCORE::action_score::action, and ACTION_SCORE::action_score::score.
float CB_ALGS::get_cost_pred | ( | LEARNER::single_learner * | scorer, |
CB::cb_class * | known_cost, | ||
example & | ec, | ||
uint32_t | index, | ||
uint32_t | base | ||
) |
Definition at line 22 of file cb_algs.h.
References CB::cb_class::action, BASELINE::baseline_enabled(), polylabel::cb, CB::cb_class::cost, label_data::initial, example::l, label_data::label, LEARNER::learner< T, E >::learn(), example::pred, LEARNER::learner< T, E >::predict(), CB::cb_class::probability, BASELINE::reset_baseline_disabled(), polyprediction::scalar, BASELINE::set_baseline_enabled(), polylabel::simple, and example::weight.
bool CB_ALGS::know_all_cost_example | ( | CB::label & | ld | ) |
Definition at line 33 of file cb_algs.cc.
References CB::label::costs.
void CB_ALGS::learn_eval | ( | cb & | data, |
single_learner & | , | ||
example & | ec | ||
) |
Definition at line 77 of file cb_algs.cc.
References c, CB_ALGS::cb::cb_cs_ld, polylabel::cb_eval, CB_ALGS::cb::cbcs, CB::label::costs, COST_SENSITIVE::label::costs, CB_EVAL::label::event, CB_ADF::get_observed_cost(), GEN_CS::cb_to_cs::known_cost, and example::l.
Referenced by cb_algs_setup().
Definition at line 91 of file cb_algs.cc.
References CB::cb_class::action, c, CB::cb_label, CB_ALGS::cb::cbcs, CB::label::costs, vw::final_prediction_sink, get_cost_estimate(), GEN_CS::cb_to_cs::known_cost, loss(), polyprediction::multiclass, example::num_features, CB::cb_class::partial_prediction, example::pred, GEN_CS::cb_to_cs::pred_scores, vw::print, vw::print_text, CB::print_update(), vw::raw_prediction, vw::sd, example::tag, label_parser::test_label, test_label(), example::test_only, and shared_data::update().
Referenced by eval_finish_example(), and finish_example().
void CB_ALGS::predict_eval | ( | cb & | , |
single_learner & | , | ||
example & | |||
) |
void CB_ALGS::predict_or_learn | ( | cb & | data, |
single_learner & | base, | ||
example & | ec | ||
) |
Definition at line 49 of file cb_algs.cc.
References CB::cb_class::action, c, polylabel::cb, CB_ALGS::cb::cb_cs_ld, CB_TYPE_DM, CB_ALGS::cb::cbcs, COST_SENSITIVE::label::costs, CB_ADF::get_observed_cost(), GEN_CS::cb_to_cs::known_cost, example::l, LEARNER::learner< T, E >::learn(), GEN_CS::cb_to_cs::num_actions, and LEARNER::learner< T, E >::predict().