Vowpal Wabbit
|
Classes | |
struct | label |
struct | wclass |
Functions | |
void | name_value (substring &s, v_array< substring > &name, float &v) |
char * | bufread_label (label *ld, char *c, io_buf &cache) |
size_t | read_cached_label (shared_data *, void *v, io_buf &cache) |
float | weight (void *) |
char * | bufcache_label (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 *sd, void *v, v_array< substring > &words) |
void | print_update (vw &all, bool is_test, example &ec, multi_ex *ec_seq, bool action_scores, uint32_t prediction) |
void | output_example (vw &all, example &ec) |
void | finish_example (vw &all, example &ec) |
bool | example_is_test (example &ec) |
bool | ec_is_example_header (example const &ec) |
template<class T > | |
void | finish_example (vw &all, T &, example &ec) |
Variables | |
label_parser | cs_label |
char* COST_SENSITIVE::bufcache_label | ( | label * | ld, |
char * | c | ||
) |
Definition at line 67 of file cost_sensitive.cc.
References c, and COST_SENSITIVE::label::costs.
Referenced by cache_label().
Definition at line 31 of file cost_sensitive.cc.
References io_buf::buf_read(), c, and COST_SENSITIVE::label::costs.
Referenced by read_cached_label().
void COST_SENSITIVE::cache_label | ( | void * | v, |
io_buf & | cache | ||
) |
Definition at line 79 of file cost_sensitive.cc.
References io_buf::buf_write(), bufcache_label(), c, and COST_SENSITIVE::label::costs.
void COST_SENSITIVE::copy_label | ( | void * | dst, |
void * | src | ||
) |
Definition at line 111 of file cost_sensitive.cc.
References copy_array(), and COST_SENSITIVE::label::costs.
void COST_SENSITIVE::default_label | ( | void * | v | ) |
Definition at line 87 of file cost_sensitive.cc.
References COST_SENSITIVE::label::costs.
void COST_SENSITIVE::delete_label | ( | void * | v | ) |
Definition at line 104 of file cost_sensitive.cc.
References COST_SENSITIVE::label::costs.
bool COST_SENSITIVE::ec_is_example_header | ( | example const & | ec | ) |
Definition at line 308 of file cost_sensitive.cc.
References COST_SENSITIVE::label::costs, polylabel::cs, example::l, and v_array< T >::size().
Referenced by finish_example(), Search::generate_training_example(), output_example(), Search::search::predictLDF(), Search::search_predict(), and Search::single_prediction_LDF().
bool COST_SENSITIVE::example_is_test | ( | example & | ec | ) |
Definition at line 297 of file cost_sensitive.cc.
References COST_SENSITIVE::label::costs, polylabel::cs, example::l, and v_array< T >::size().
Definition at line 37 of file cost_sensitive.h.
References cs_label, ec_is_example_header(), finish_example(), MULTILABEL::multilabel, and print_update().
Definition at line 291 of file cost_sensitive.cc.
References VW::finish_example(), and output_example().
Referenced by finish_example(), CSOAA::finish_example(), and LEARNER::init_cost_sensitive_learner().
Definition at line 9 of file cost_sensitive.cc.
References substring::begin, substring::end, float_of_substring(), v_array< T >::size(), THROW, and tokenize().
Referenced by parse_label().
Definition at line 236 of file cost_sensitive.cc.
References substring::begin, COST_SENSITIVE::wclass::class_index, COST_SENSITIVE::label::costs, polylabel::cs, substring::end, vw::final_prediction_sink, namedlabels::get(), example::l, shared_data::ldict, loss(), polyprediction::multiclass, example::num_features, COST_SENSITIVE::wclass::partial_prediction, example::pred, vw::print, vw::print_text, print_update(), vw::raw_prediction, vw::sd, example::tag, test_label(), example::test_only, shared_data::update(), and example::weight.
Referenced by finish_example().
void COST_SENSITIVE::parse_label | ( | parser * | p, |
shared_data * | sd, | ||
void * | v, | ||
v_array< substring > & | words | ||
) |
Definition at line 121 of file cost_sensitive.cc.
References v_array< T >::begin(), COST_SENSITIVE::wclass::class_index, COST_SENSITIVE::label::costs, f, float_of_substring(), namedlabels::get(), hashstring(), shared_data::ldict, name_value(), parser::parse_name, v_array< T >::size(), substring_equal(), THROW, and COST_SENSITIVE::wclass::x.
void COST_SENSITIVE::print_update | ( | vw & | all, |
bool | is_test, | ||
example & | ec, | ||
multi_ex * | ec_seq, | ||
bool | action_scores, | ||
uint32_t | prediction | ||
) |
Definition at line 190 of file cost_sensitive.cc.
References polyprediction::a_s, vw::bfgs, shared_data::col_current_predict, vw::current_pass, shared_data::dump_interval, namedlabels::get(), vw::holdout_set_off, shared_data::ldict, 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 finish_example(), output_example(), output_example(), CSOAA::output_example(), and CSOAA::output_rank_example().
size_t COST_SENSITIVE::read_cached_label | ( | shared_data * | , |
void * | v, | ||
io_buf & | cache | ||
) |
Definition at line 52 of file cost_sensitive.cc.
References io_buf::buf_read(), bufread_label(), c, and COST_SENSITIVE::label::costs.
bool COST_SENSITIVE::test_label | ( | void * | v | ) |
Definition at line 93 of file cost_sensitive.cc.
References COST_SENSITIVE::label::costs.
Referenced by output_example().
float COST_SENSITIVE::weight | ( | void * | ) |
Definition at line 65 of file cost_sensitive.cc.
label_parser COST_SENSITIVE::cs_label |
Definition at line 187 of file cost_sensitive.cc.
Referenced by add_to_vali(), cbifyldf_setup(), cs_active_setup(), CSOAA::csldf_setup(), CSOAA::csoaa_setup(), EntityRelationTask::finish(), DepParserTask::finish(), SequenceTask_DemoLDF::finish(), finish_example(), Search::predictor::free_ec(), init_adf_data(), LEARNER::init_cost_sensitive_learner(), DepParserTask::initialize(), GraphTask::initialize(), SequenceTask_DemoLDF::initialize(), output_example(), CSOAA::output_example(), CSOAA::output_rank_example(), Search::search_initialize(), Search::search_predict(), Search::predictor::set_input_at(), Search::setup(), Search::single_prediction_LDF(), CSOAA::test_ldf_sequence(), Search::train_single_example(), CB_ALGS::cb::~cb(), CB_EXPLORE::cb_explore::~cb_explore(), Search::search::~search(), and warm_cb::~warm_cb().