Vowpal Wabbit
|
Classes | |
struct | label_t |
Functions | |
char * | bufread_label (label_t *ld, char *c) |
size_t | read_cached_label (shared_data *, void *v, io_buf &cache) |
float | weight (void *v) |
char * | bufcache_label (label_t *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 *) |
void | parse_label (parser *, shared_data *sd, void *v, v_array< substring > &words) |
void | print_label_pred (vw &all, example &ec, uint32_t prediction) |
void | print_probability (vw &all, example &ec, uint32_t prediction) |
void | print_score (vw &all, example &ec, uint32_t prediction) |
void | direct_print_update (vw &all, example &ec, uint32_t prediction) |
template<void(*)(vw &, example &, uint32_t) T> | |
void | print_update (vw &all, example &ec, uint32_t prediction) |
void | print_update_with_probability (vw &all, example &ec, uint32_t pred) |
void | print_update_with_score (vw &all, example &ec, uint32_t pred) |
void | finish_example (vw &all, example &ec, bool update_loss) |
template<class T > | |
void | finish_example (vw &all, T &, example &ec) |
template<class T > | |
void | finish_example_without_loss (vw &all, T &, example &ec) |
Variables | |
label_parser | mc_label |
char* MULTICLASS::bufcache_label | ( | label_t * | ld, |
char * | c | ||
) |
Definition at line 36 of file multiclass.cc.
References c, MULTICLASS::label_t::label, and MULTICLASS::label_t::weight.
Referenced by cache_label().
char* MULTICLASS::bufread_label | ( | label_t * | ld, |
char * | c | ||
) |
Definition at line 9 of file multiclass.cc.
References c, MULTICLASS::label_t::label, and MULTICLASS::label_t::weight.
Referenced by read_cached_label().
void MULTICLASS::cache_label | ( | void * | v, |
io_buf & | cache | ||
) |
Definition at line 45 of file multiclass.cc.
References io_buf::buf_write(), bufcache_label(), c, MULTICLASS::label_t::label, and MULTICLASS::label_t::weight.
void MULTICLASS::default_label | ( | void * | v | ) |
Definition at line 53 of file multiclass.cc.
References MULTICLASS::label_t::label, and MULTICLASS::label_t::weight.
void MULTICLASS::delete_label | ( | void * | ) |
Definition at line 66 of file multiclass.cc.
Definition at line 131 of file multiclass.cc.
References vw::current_pass, vw::holdout_set_off, example::l, MULTICLASS::label_t::label, polylabel::multi, example::num_features, shared_data::print_update(), vw::progress_add, vw::progress_arg, and vw::sd.
Definition at line 155 of file multiclass.cc.
References substring::begin, substring::end, vw::final_prediction_sink, VW::finish_example(), namedlabels::get(), example::l, MULTICLASS::label_t::label, shared_data::ldict, loss(), polylabel::multi, polyprediction::multiclass, example::num_features, example::pred, vw::print, vw::print_text, vw::sd, example::tag, example::test_only, shared_data::update(), and example::weight.
Referenced by finish_example(), and finish_example_without_loss().
void MULTICLASS::parse_label | ( | parser * | , |
shared_data * | sd, | ||
void * | v, | ||
v_array< substring > & | words | ||
) |
Definition at line 68 of file multiclass.cc.
References float_of_substring(), namedlabels::get(), int_of_substring(), MULTICLASS::label_t::label, shared_data::ldict, v_array< T >::size(), THROW, and MULTICLASS::label_t::weight.
Definition at line 96 of file multiclass.cc.
References substring::begin, vw::current_pass, substring::end, namedlabels::get(), vw::holdout_set_off, example::l, MULTICLASS::label_t::label, shared_data::ldict, polylabel::multi, example::num_features, shared_data::print_update(), vw::progress_add, vw::progress_arg, and vw::sd.
Referenced by print_update().
Definition at line 106 of file multiclass.cc.
References vw::current_pass, vw::holdout_set_off, example::l, MULTICLASS::label_t::label, polylabel::multi, example::num_features, example::pred, shared_data::print_update(), vw::progress_add, vw::progress_arg, polyprediction::scalars, and vw::sd.
Definition at line 119 of file multiclass.cc.
References vw::current_pass, vw::holdout_set_off, example::l, MULTICLASS::label_t::label, polylabel::multi, example::num_features, shared_data::print_update(), vw::progress_add, vw::progress_arg, and vw::sd.
void MULTICLASS::print_update | ( | vw & | all, |
example & | ec, | ||
uint32_t | prediction | ||
) |
Definition at line 138 of file multiclass.cc.
References vw::bfgs, shared_data::dump_interval, shared_data::ldict, polyprediction::multiclass, example::pred, print_label_pred(), vw::quiet, vw::sd, and shared_data::weighted_examples().
Definition at line 149 of file multiclass.cc.
Referenced by finish_example_scores().
Definition at line 153 of file multiclass.cc.
Referenced by finish_example_scores().
size_t MULTICLASS::read_cached_label | ( | shared_data * | , |
void * | v, | ||
io_buf & | cache | ||
) |
Definition at line 18 of file multiclass.cc.
References io_buf::buf_read(), bufread_label(), c, MULTICLASS::label_t::label, and MULTICLASS::label_t::weight.
bool MULTICLASS::test_label | ( | void * | v | ) |
Definition at line 60 of file multiclass.cc.
References MULTICLASS::label_t::label.
float MULTICLASS::weight | ( | void * | v | ) |
Definition at line 30 of file multiclass.cc.
References MULTICLASS::label_t::weight.
label_parser MULTICLASS::mc_label |
Definition at line 93 of file multiclass.cc.
Referenced by add_to_vali(), LEARNER::init_multiclass_learner(), Search::mc_label_is_test(), Search::setup(), Search::train_single_example(), Search::search::~search(), and warm_cb::~warm_cb().