Vowpal Wabbit
|
Classes | |
struct | cb_class |
struct | label |
Functions | |
char * | bufread_label (CB::label *ld, char *c, io_buf &cache) |
size_t | read_cached_label (shared_data *, void *v, io_buf &cache) |
float | weight (void *v) |
char * | bufcache_label (CB::label *ld, char *c) |
void | cache_label (void *v, io_buf &cache) |
void | default_label (void *v) |
bool | test_label (void *v) |
void | delete_label (void *v) |
void | copy_label (void *dst, void *src) |
void | parse_label (parser *p, shared_data *, void *v, v_array< substring > &words) |
bool | ec_is_example_header (example const &ec) |
void | print_update (vw &all, bool is_test, example &ec, multi_ex *ec_seq, bool action_scores) |
Variables | |
label_parser | cb_label |
struct CB::cb_class | __attribute__ |
char* CB::bufcache_label | ( | CB::label * | ld, |
char * | c | ||
) |
Definition at line 58 of file cb.cc.
References c, CB::label::costs, and CB::label::weight.
Referenced by cache_label().
Definition at line 17 of file cb.cc.
References io_buf::buf_read(), c, CB::label::costs, and CB::label::weight.
Referenced by read_cached_label().
void CB::cache_label | ( | void * | v, |
io_buf & | cache | ||
) |
Definition at line 72 of file cb.cc.
References io_buf::buf_write(), bufcache_label(), c, CB::label::costs, and CB::label::weight.
Referenced by CB_EVAL::cache_label().
void CB::copy_label | ( | void * | dst, |
void * | src | ||
) |
Definition at line 104 of file cb.cc.
References copy_array(), CB::label::costs, and CB::label::weight.
Referenced by add_to_vali(), VW::copy_example_data(), VW::copy_example_label(), CB_EVAL::copy_label(), and Search::predictor::set_input_at().
void CB::default_label | ( | void * | v | ) |
Definition at line 80 of file cb.cc.
References CB::label::costs, and CB::label::weight.
Referenced by CB_EVAL::default_label().
void CB::delete_label | ( | void * | v | ) |
Definition at line 98 of file cb.cc.
References CB::label::costs.
Referenced by VW::dealloc_example(), CB_EVAL::delete_label(), EntityRelationTask::finish(), DepParserTask::finish(), SequenceTask_DemoLDF::finish(), Search::predictor::free_ec(), cbify::~cbify(), Search::search::~search(), and warm_cb::~warm_cb().
bool CB::ec_is_example_header | ( | example const & | ec | ) |
Definition at line 170 of file cb.cc.
References polylabel::cb, CB::label::costs, f, example::l, and v_array< T >::size().
Referenced by LEARNER::example_is_newline_not_header(), CB_ALGS::example_is_newline_not_header(), EXPLORE_EVAL::output_example(), VW::shared_feature_merger::predict_or_learn(), and print_update().
void CB::parse_label | ( | parser * | p, |
shared_data * | , | ||
void * | v, | ||
v_array< substring > & | words | ||
) |
Definition at line 112 of file cb.cc.
References CB::cb_class::action, CB::cb_class::cost, CB::label::costs, v_array< T >::empty(), f, float_of_substring(), hashstring(), parser::parse_name, CB::cb_class::partial_prediction, CB::cb_class::probability, v_array< T >::size(), substring_equal(), THROW, tokenize(), and CB::label::weight.
Referenced by CB_EVAL::parse_label().
void CB::print_update | ( | vw & | all, |
bool | is_test, | ||
example & | ec, | ||
multi_ex * | ec_seq, | ||
bool | action_scores | ||
) |
Definition at line 180 of file cb.cc.
References polyprediction::a_s, vw::bfgs, shared_data::col_current_predict, vw::current_pass, shared_data::dump_interval, ec_is_example_header(), v_array< T >::empty(), vw::holdout_set_off, polyprediction::multiclass, example::num_features, example::pred, shared_data::print_update(), vw::progress_add, vw::progress_arg, vw::quiet, vw::sd, and shared_data::weighted_examples().
Referenced by MWT::finish_example(), output_and_account_confidence_example(), output_and_account_example(), EXPLORE_EVAL::output_example(), VW::cb_explore_adf::cb_explore_adf_base< ExploreType >::output_example(), CB_ALGS::output_example(), output_example(), CB_ADF::output_example(), CB_ADF::output_rank_example(), and shared_data::print_update().
size_t CB::read_cached_label | ( | shared_data * | , |
void * | v, | ||
io_buf & | cache | ||
) |
Definition at line 39 of file cb.cc.
References io_buf::buf_read(), bufread_label(), c, and CB::label::costs.
Referenced by CB_EVAL::read_cached_label().
bool CB::test_label | ( | void * | v | ) |
Definition at line 87 of file cb.cc.
References CB::label::costs.
Referenced by CB_EVAL::test_label().
float CB::weight | ( | void * | v | ) |
Definition at line 52 of file cb.cc.
References CB::label::weight.
struct CB::cb_class CB::__attribute__ |
label_parser CB::cb_label |
Definition at line 167 of file cb.cc.
Referenced by cb_adf_setup(), cb_algs_setup(), copy_example_to_adf(), explore_eval_setup(), init_adf_data(), mwt_setup(), CB_ALGS::output_example(), CB_EXPLORE::output_example(), VW::cb_explore_adf::softmax::setup(), VW::cb_explore_adf::greedy::setup(), VW::cb_explore_adf::first::setup(), VW::cb_explore_adf::bag::setup(), VW::cb_explore_adf::cover::setup(), VW::cb_explore_adf::regcb::setup(), Search::setup(), cbify::~cbify(), and warm_cb::~warm_cb().