Vowpal Wabbit
|
Classes | |
struct | cb_adf |
Functions | |
CB::cb_class | get_observed_cost (multi_ex &examples) |
example * | test_adf_sequence (multi_ex &ec_seq) |
void | global_print_newline (const v_array< int > &final_prediction_sink) |
void | output_example (vw &all, cb_adf &c, example &ec, multi_ex *ec_seq) |
void | output_rank_example (vw &all, cb_adf &c, example &ec, multi_ex *ec_seq) |
void | output_example_seq (vw &all, cb_adf &data, multi_ex &ec_seq) |
void | finish_multiline_example (vw &all, cb_adf &data, multi_ex &ec_seq) |
void | save_load (cb_adf &c, io_buf &model_file, bool read, bool text) |
void | learn (cb_adf &c, multi_learner &base, multi_ex &ec_seq) |
void | predict (cb_adf &c, multi_learner &base, multi_ex &ec_seq) |
Definition at line 451 of file cb_adf.cc.
References vw::final_prediction_sink, VW::finish_example(), global_print_newline(), and output_example_seq().
Referenced by cb_adf_setup().
CB::cb_class CB_ADF::get_observed_cost | ( | multi_ex & | examples | ) |
Definition at line 99 of file cb_adf.cc.
References CB::cb_class::action, CB::label::costs, and CB::cb_class::probability.
Referenced by CB_ADF::cb_adf::do_actual_learning(), EXPLORE_EVAL::do_actual_learning(), VW::cb_explore_adf::cb_explore_adf_base< ExploreType >::learn(), CB_ALGS::learn_eval(), CB_EXPLORE::output_example(), VW::cb_explore_adf::cb_explore_adf_base< ExploreType >::predict(), CB_ALGS::predict_or_learn(), CB_EXPLORE::predict_or_learn_cover(), and VW::cb_explore_adf::cover::cb_explore_adf_cover::predict_or_learn_impl().
void CB_ADF::global_print_newline | ( | const v_array< int > & | final_prediction_sink | ) |
Definition at line 342 of file cb_adf.cc.
References f, and io_buf::write_file_or_socket().
Referenced by VW::cb_explore_adf::cb_explore_adf_base< ExploreType >::finish_multiline_example(), EXPLORE_EVAL::finish_multiline_example(), finish_multiline_example(), and CCB::finish_multiline_example().
void CB_ADF::learn | ( | cb_adf & | c, |
multi_learner & | base, | ||
multi_ex & | ec_seq | ||
) |
Definition at line 475 of file cb_adf.cc.
References CB_ADF::cb_adf::do_actual_learning().
Referenced by cb_adf_setup().
Definition at line 379 of file cb_adf.cc.
References polyprediction::a_s, polylabel::cb, CB::label::costs, LEARNER::example_is_newline_not_header(), vw::final_prediction_sink, example::l, example::pred, vw::print, vw::print_text, CB::print_update(), vw::raw_prediction, v_array< T >::size(), example::tag, and CB_ADF::cb_adf::update_statistics().
Referenced by output_example_seq().
Definition at line 435 of file cb_adf.cc.
References CB_ADF::cb_adf::get_rank_all(), output_example(), output_rank_example(), vw::print_text, and vw::raw_prediction.
Definition at line 407 of file cb_adf.cc.
References polyprediction::a_s, polylabel::cb, CB::label::costs, LEARNER::example_is_newline_not_header(), vw::final_prediction_sink, example::l, example::pred, ACTION_SCORE::print_action_score(), vw::print_text, CB::print_update(), vw::raw_prediction, v_array< T >::size(), example::tag, and CB_ADF::cb_adf::update_statistics().
Referenced by output_example_seq().
void CB_ADF::predict | ( | cb_adf & | c, |
multi_learner & | base, | ||
multi_ex & | ec_seq | ||
) |
Definition at line 477 of file cb_adf.cc.
References CB_ADF::cb_adf::do_actual_learning().
Referenced by cb_adf_setup(), and CB_ADF::cb_adf::learn_MTR().
Definition at line 461 of file cb_adf.cc.
References GEN_CS::cb_to_cs_adf::action_sum, bin_text_read_write_fixed(), GEN_CS::cb_to_cs_adf::event_sum, CB_ADF::cb_adf::get_gen_cs(), CB_ADF::cb_adf::get_model_file_ver(), and VERSION_FILE_WITH_CB_ADF_SAVE.
Referenced by cb_adf_setup().
Definition at line 268 of file cb_adf.cc.
References THROW.
Referenced by CB_ADF::cb_adf::do_actual_learning(), EXPLORE_EVAL::do_actual_learning(), VW::cb_explore_adf::cb_explore_adf_base< ExploreType >::learn(), and VW::cb_explore_adf::cb_explore_adf_base< ExploreType >::predict().