Vowpal Wabbit
|
Classes | |
struct | svrg |
struct | update |
Functions | |
template<int offset> | |
void | vec_add (float &p, const float x, float &w) |
template<int offset> | |
float | inline_predict (vw &all, example &ec) |
float | predict_stable (const svrg &s, example &ec) |
void | predict (svrg &s, single_learner &, example &ec) |
float | gradient_scalar (const svrg &s, const example &ec, float pred) |
void | update_inner_feature (update &u, float x, float &w) |
void | update_stable_feature (float &g_scalar, float x, float &w) |
void | update_inner (const svrg &s, example &ec) |
void | update_stable (const svrg &s, example &ec) |
void | learn (svrg &s, single_learner &base, example &ec) |
void | save_load (svrg &s, io_buf &model_file, bool read, bool text) |
Definition at line 61 of file svrg.cc.
References SVRG::svrg::all, loss_function::first_derivative(), example::l, label_data::label, vw::loss, vw::sd, polylabel::simple, and example::weight.
Referenced by update_inner(), and update_stable().
Definition at line 41 of file svrg.cc.
References label_data::initial, example::l, and polylabel::simple.
void SVRG::learn | ( | svrg & | s, |
single_learner & | base, | ||
example & | ec | ||
) |
Definition at line 105 of file svrg.cc.
References SVRG::svrg::all, VW::get_weight(), example::in_use, VW::num_weights(), vw::passes_complete, predict(), SVRG::svrg::prev_pass, vw::quiet, VW::set_weight(), SVRG::svrg::stable_grad_count, SVRG::svrg::stage_size, update_inner(), update_stable(), W_INNER, W_STABLE, and W_STABLEGRAD.
Referenced by svrg_setup().
void SVRG::predict | ( | svrg & | s, |
single_learner & | , | ||
example & | ec | ||
) |
Definition at line 55 of file svrg.cc.
References SVRG::svrg::all, GD::finalize_prediction(), example::partial_prediction, example::pred, polyprediction::scalar, and vw::sd.
Referenced by learn(), and svrg_setup().
Definition at line 50 of file svrg.cc.
References SVRG::svrg::all, GD::finalize_prediction(), and vw::sd.
Referenced by update_inner(), and update_stable().
Definition at line 142 of file svrg.cc.
References SVRG::svrg::all, bin_text_read_write_fixed(), v_array< T >::empty(), io_buf::files, initialize_regressor(), GD::save_load_online_state(), GD::save_load_regressor(), and vw::save_resume.
Referenced by svrg_setup().
Definition at line 88 of file svrg.cc.
References SVRG::svrg::all, SVRG::update::eta, vw::eta, SVRG::update::g_scalar_inner, SVRG::update::g_scalar_stable, gradient_scalar(), SVRG::update::norm, example::pred, predict_stable(), polyprediction::scalar, and SVRG::svrg::stable_grad_count.
Referenced by learn().
|
inline |
Definition at line 76 of file svrg.cc.
References SVRG::update::eta, SVRG::update::g_scalar_inner, SVRG::update::g_scalar_stable, SVRG::update::norm, and W_STABLEGRAD.
Definition at line 99 of file svrg.cc.
References SVRG::svrg::all, gradient_scalar(), and predict_stable().
Referenced by learn().
|
inline |