Vowpal Wabbit
|
#include "baseline.h"
Go to the source code of this file.
Namespaces | |
CB_ALGS | |
Macros | |
#define | CB_TYPE_DR 0 |
#define | CB_TYPE_DM 1 |
#define | CB_TYPE_IPS 2 |
#define | CB_TYPE_MTR 3 |
#define | CB_TYPE_SM 4 |
Functions | |
LEARNER::base_learner * | cb_algs_setup (VW::config::options_i &options, vw &all) |
template<bool is_learn> | |
float | CB_ALGS::get_cost_pred (LEARNER::single_learner *scorer, CB::cb_class *known_cost, example &ec, uint32_t index, uint32_t base) |
float | CB_ALGS::get_cost_estimate (CB::cb_class *observation, uint32_t action, float offset=0.) |
float | CB_ALGS::get_cost_estimate (CB::cb_class *observation, COST_SENSITIVE::label &scores, uint32_t action) |
float | CB_ALGS::get_cost_estimate (ACTION_SCORE::action_score &a_s, float cost, uint32_t action, float offset=0.) |
bool | CB_ALGS::example_is_newline_not_header (example const &ec) |
#define CB_TYPE_DM 1 |
Definition at line 14 of file cb_algs.h.
Referenced by cb_adf_setup(), cb_algs_setup(), CB_ADF::cb_adf::do_actual_learning(), GEN_CS::gen_cs_example(), and CB_ALGS::predict_or_learn().
#define CB_TYPE_DR 0 |
Definition at line 13 of file cb_algs.h.
Referenced by cb_adf_setup(), cb_algs_setup(), cb_explore_setup(), CB_ADF::cb_adf::do_actual_learning(), GEN_CS::gen_cs_example(), and VW::cb_explore_adf::cover::setup().
#define CB_TYPE_IPS 2 |
Definition at line 15 of file cb_algs.h.
Referenced by cb_adf_setup(), cb_algs_setup(), CB_ADF::cb_adf::do_actual_learning(), GEN_CS::gen_cs_example(), and VW::cb_explore_adf::cover::setup().
#define CB_TYPE_MTR 3 |
Definition at line 16 of file cb_algs.h.
Referenced by cb_adf_setup(), CB_ADF::cb_adf::do_actual_learning(), GEN_CS::gen_cs_example(), VW::cb_explore_adf::cover::cb_explore_adf_cover::predict_or_learn_impl(), and VW::cb_explore_adf::cover::setup().
#define CB_TYPE_SM 4 |
Definition at line 17 of file cb_algs.h.
Referenced by cb_adf_setup(), and CB_ADF::cb_adf::do_actual_learning().
LEARNER::base_learner* cb_algs_setup | ( | VW::config::options_i & | options, |
vw & | all | ||
) |
Definition at line 132 of file cb_algs.cc.
References VW::config::option_group_definition::add(), add(), VW::config::options_i::add_and_parse(), LEARNER::as_singleline(), c, label_type::cb, CB_EVAL::cb_eval, label_type::cb_eval, CB::cb_label, GEN_CS::cb_to_cs::cb_type, CB_TYPE_DM, CB_TYPE_DR, CB_TYPE_IPS, CB_ALGS::eval_finish_example(), CB_ALGS::finish_example(), LEARNER::init_learner(), VW::config::options_i::insert(), vw::label_type, CB_ALGS::learn_eval(), parser::lp, LEARNER::make_base(), VW::config::make_option(), prediction_type::multiclass, vw::p, CB_ALGS::predict_eval(), GEN_CS::cb_to_cs::scorer, vw::scorer, LEARNER::learner< T, E >::set_finish_example(), setup_base(), THROW, and VW::config::options_i::was_supplied().
Referenced by parse_reductions().