Vowpal Wabbit
|
Classes | |
struct | mwt |
struct | policy_data |
Functions | |
bool | observed_cost (CB::cb_class *cl) |
CB::cb_class * | get_observed_cost (CB::label &ld) |
void | value_policy (mwt &c, float val, uint64_t index) |
template<bool learn, bool exclude, bool is_learn> | |
void | predict_or_learn (mwt &c, single_learner &base, example &ec) |
void | print_scalars (int f, v_array< float > &scalars, v_array< char > &tag) |
void | finish_example (vw &all, mwt &c, example &ec) |
void | save_load (mwt &c, io_buf &model_file, bool read, bool text) |
void | delete_scalars (void *v) |
|
inline |
Definition at line 37 of file example.h.
References v_array< T >::delete_v().
Referenced by lda_setup(), mwt_setup(), and oaa_setup().
Definition at line 175 of file mwt.cc.
References vw::final_prediction_sink, VW::finish_example(), CB_ALGS::get_cost_estimate(), MWT::mwt::learn, loss(), polyprediction::multiclass, example::num_features, MWT::mwt::observation, example::pred, print_scalars(), CB::print_update(), polyprediction::scalars, vw::sd, example::tag, example::test_only, and shared_data::update().
Referenced by mwt_setup().
CB::cb_class* MWT::get_observed_cost | ( | CB::label & | ld | ) |
Definition at line 57 of file mwt.cc.
References CB::label::costs, and observed_cost().
Referenced by predict_or_learn().
|
inline |
Definition at line 48 of file mwt.cc.
References CB::cb_class::cost, and CB::cb_class::probability.
Referenced by get_observed_cost().
void MWT::predict_or_learn | ( | mwt & | c, |
single_learner & | base, | ||
example & | ec | ||
) |
Definition at line 83 of file mwt.cc.
References MWT::mwt::all, c, polylabel::cb, v_array< T >::clear(), features::clear(), v_array< T >::empty(), MWT::mwt::evals, f, MWT::mwt::feature_space, example_predict::feature_space, CB_ALGS::get_cost_estimate(), get_observed_cost(), MWT::mwt::indices, example_predict::indices, example::l, LEARNER::learner< T, E >::learn(), learn(), parameters::mask(), polyprediction::multiclass, MWT::mwt::namespaces, MWT::mwt::num_classes, MWT::mwt::observation, MWT::mwt::policies, v_array< T >::pop(), example::pred, LEARNER::learner< T, E >::predict(), v_array< T >::push_back(), features::push_back(), polyprediction::scalars, stride_shift(), parameters::stride_shift(), MWT::mwt::total, and vw::weights.
Definition at line 149 of file mwt.cc.
References v_array< T >::size(), and io_buf::write_file_or_socket().
Referenced by finish_example(), and return_example().
Definition at line 195 of file mwt.cc.
References MWT::policy_data::action, v_array< T >::begin(), bin_text_read_write_fixed_validated(), MWT::policy_data::cost, v_array< T >::empty(), v_array< T >::end(), MWT::mwt::evals, io_buf::files, MWT::mwt::policies, v_array< T >::resize(), v_array< T >::size(), and MWT::mwt::total.
Referenced by mwt_setup().
void MWT::value_policy | ( | mwt & | c, |
float | val, | ||
uint64_t | index | ||
) |
Definition at line 65 of file mwt.cc.
References MWT::mwt::all, MWT::mwt::evals, parameters::mask(), MWT::mwt::policies, v_array< T >::push_back(), parameters::stride_shift(), and vw::weights.