Vowpal Wabbit
|
Classes | |
struct | data |
struct | expert |
Typedefs | |
typedef std::pair< double, double > | marginal |
typedef std::pair< expert, expert > | expert_pair |
Functions | |
float | get_adanormalhedge_weights (float R, float C) |
template<bool is_learn> | |
void | make_marginal (data &sm, example &ec) |
void | undo_marginal (data &sm, example &ec) |
template<bool is_learn> | |
void | compute_expert_loss (data &sm, example &ec) |
void | update_marginal (data &sm, example &ec) |
template<bool is_learn> | |
void | predict_or_learn (data &sm, LEARNER::single_learner &base, example &ec) |
void | save_load (data &sm, io_buf &io, bool read, bool text) |
typedef std::pair<expert, expert> MARGINAL::expert_pair |
Definition at line 17 of file marginal.cc.
typedef std::pair<double, double> MARGINAL::marginal |
Definition at line 16 of file marginal.cc.
Definition at line 132 of file marginal.cc.
References MARGINAL::data::alg_loss, MARGINAL::data::all, MARGINAL::data::average_pred, MARGINAL::data::feature_pred, loss_function::getLoss(), example::l, label_data::label, vw::loss, MARGINAL::data::net_feature_weight, MARGINAL::data::net_weight, example::partial_prediction, example::pred, polyprediction::scalar, vw::sd, and polylabel::simple.
float MARGINAL::get_adanormalhedge_weights | ( | float | R, |
float | C | ||
) |
Definition at line 48 of file marginal.cc.
References correctedExp.
Referenced by update_marginal().
Definition at line 57 of file marginal.cc.
References MARGINAL::data::alg_loss, MARGINAL::data::all, MARGINAL::data::average_pred, example_predict::begin(), features::begin(), features::clear(), MARGINAL::data::compete, v_array< T >::empty(), example_predict::end(), features::end(), MARGINAL::data::expert_state, f, example_predict::ft_offset, loss_function::getLoss(), MARGINAL::data::id_features, MARGINAL::data::initial_denominator, MARGINAL::data::initial_numerator, example::l, label_data::label, vw::loss, MARGINAL::data::marginals, parameters::mask(), MARGINAL::data::net_feature_weight, MARGINAL::data::net_weight, v_array< T >::push_back(), features::push_back(), vw::sd, polylabel::simple, features::size(), features::space_names, MARGINAL::data::temp, and vw::weights.
void MARGINAL::predict_or_learn | ( | data & | sm, |
LEARNER::single_learner & | base, | ||
example & | ec | ||
) |
Definition at line 200 of file marginal.cc.
References LEARNER::learner< T, E >::learn(), example::pred, LEARNER::learner< T, E >::predict(), polyprediction::scalar, undo_marginal(), and update_marginal().
Definition at line 244 of file marginal.cc.
References MARGINAL::data::all, bin_text_read_write_fixed(), bin_text_read_write_fixed_validated(), MARGINAL::data::compete, MARGINAL::data::expert_state, io_buf::files, MARGINAL::data::marginals, v_array< T >::size(), stride_shift(), parameters::stride_shift(), and vw::weights.
Referenced by marginal_setup().
Definition at line 121 of file marginal.cc.
References example_predict::begin(), example_predict::end(), MARGINAL::data::id_features, and MARGINAL::data::temp.
Referenced by predict_or_learn().
Definition at line 157 of file marginal.cc.
References MARGINAL::data::alg_loss, MARGINAL::data::all, example_predict::begin(), features::begin(), MARGINAL::data::compete, MARGINAL::data::decay, example_predict::end(), features::end(), MARGINAL::data::expert_state, MARGINAL::data::feature_pred, example_predict::ft_offset, get_adanormalhedge_weights(), loss_function::getLoss(), MARGINAL::data::id_features, example::l, label_data::label, vw::loss, MARGINAL::data::marginals, parameters::mask(), vw::sd, polylabel::simple, MARGINAL::data::temp, MARGINAL::data::unweighted_marginals, example::weight, and vw::weights.
Referenced by predict_or_learn().