Vowpal Wabbit
|
Go to the source code of this file.
Classes | |
struct | update_data |
struct | ftrl |
struct | uncertainty |
Macros | |
#define | W_XT 0 |
#define | W_ZT 1 |
#define | W_G2 2 |
#define | W_MX 3 |
#define | W_WE 4 |
#define | W_MG 5 |
#define W_G2 2 |
Definition at line 15 of file ftrl.cc.
Referenced by inner_update_cb_post(), inner_update_cb_state_and_predict(), inner_update_pistol_post(), inner_update_pistol_state_and_predict(), inner_update_proximal(), and predict_with_confidence().
#define W_MG 5 |
Definition at line 18 of file ftrl.cc.
Referenced by inner_update_cb_post(), and inner_update_cb_state_and_predict().
#define W_MX 3 |
Definition at line 16 of file ftrl.cc.
Referenced by inner_update_cb_post(), inner_update_cb_state_and_predict(), and inner_update_pistol_state_and_predict().
#define W_WE 4 |
Definition at line 17 of file ftrl.cc.
Referenced by inner_update_cb_post(), and inner_update_cb_state_and_predict().
#define W_XT 0 |
Definition at line 13 of file ftrl.cc.
Referenced by inner_update_cb_post(), inner_update_pistol_state_and_predict(), inner_update_proximal(), and predict_with_confidence().
#define W_ZT 1 |
Definition at line 14 of file ftrl.cc.
Referenced by inner_update_cb_post(), inner_update_cb_state_and_predict(), inner_update_pistol_post(), inner_update_pistol_state_and_predict(), and inner_update_proximal().
void end_pass | ( | ftrl & | g | ) |
Definition at line 321 of file ftrl.cc.
References ftrl::all, vw::check_holdout_every_n_passes, vw::current_pass, ftrl::early_stop_thres, vw::final_regressor_name, finalize_regressor(), vw::holdout_set_off, ftrl::no_win_counter, set_done(), and summarize_holdout_set().
base_learner* ftrl_setup | ( | options_i & | options, |
vw & | all | ||
) |
Definition at line 335 of file ftrl.cc.
References VW::config::option_group_definition::add(), add(), VW::config::options_i::add_and_parse(), vw::audit, LEARNER::end_pass(), VW::config::options_i::get_typed_option(), vw::hash_inv, shared_data::holdout_best_loss, vw::holdout_set_off, LEARNER::init_learner(), learn_cb(), learn_pistol(), LEARNER::make_base(), VW::config::make_option(), vw::normalized_sum_norm_x, vw::quiet, save_load(), vw::sd, sensitivity(), parameters::stride_shift(), UINT64_ONE, VW::config::options_i::was_supplied(), and vw::weights.
Referenced by parse_reductions().
void inner_update_cb_post | ( | update_data & | d, |
float | x, | ||
float & | wref | ||
) |
Definition at line 194 of file ftrl.cc.
References update_data::ftrl_alpha, update_data::ftrl_beta, update_data::update, W_G2, W_MG, W_MX, W_WE, W_XT, and W_ZT.
void inner_update_cb_state_and_predict | ( | update_data & | d, |
float | x, | ||
float & | wref | ||
) |
Definition at line 173 of file ftrl.cc.
References update_data::ftrl_alpha, update_data::normalized_squared_norm_x, update_data::predict, W_G2, W_MG, W_MX, W_WE, and W_ZT.
void inner_update_pistol_post | ( | update_data & | d, |
float | x, | ||
float & | wref | ||
) |
void inner_update_pistol_state_and_predict | ( | update_data & | d, |
float | x, | ||
float & | wref | ||
) |
Definition at line 142 of file ftrl.cc.
References correctedExp, f, update_data::ftrl_alpha, update_data::ftrl_beta, update_data::predict, W_G2, W_MX, W_XT, and W_ZT.
void inner_update_proximal | ( | update_data & | d, |
float | x, | ||
float & | wref | ||
) |
Definition at line 120 of file ftrl.cc.
References update_data::ftrl_alpha, update_data::ftrl_beta, update_data::l1_lambda, update_data::l2_lambda, sign(), update_data::update, W_G2, W_XT, and W_ZT.
void learn_cb | ( | ftrl & | a, |
single_learner & | base, | ||
example & | ec | ||
) |
Definition at line 290 of file ftrl.cc.
References example::in_use, update_after_prediction_cb(), and update_state_and_predict_cb().
Referenced by ftrl_setup().
void learn_pistol | ( | ftrl & | a, |
single_learner & | base, | ||
example & | ec | ||
) |
Definition at line 279 of file ftrl.cc.
References example::in_use, update_after_prediction_pistol(), and update_state_and_predict_pistol().
Referenced by ftrl_setup().
void learn_proximal | ( | ftrl & | a, |
single_learner & | base, | ||
example & | ec | ||
) |
Definition at line 268 of file ftrl.cc.
References a, example::in_use, and update_after_prediction_proximal().
void multipredict | ( | ftrl & | b, |
base_learner & | , | ||
example & | ec, | ||
size_t | count, | ||
size_t | step, | ||
polyprediction * | pred, | ||
bool | finalize_predictions | ||
) |
Definition at line 88 of file ftrl.cc.
References ftrl::all, c, shared_data::contraction, parameters::dense_weights, GD::finalize_prediction(), example_predict::ft_offset, shared_data::gravity, label_data::initial, example::l, example::pred, GD::print_audit_features(), prediction_type::scalar, polyprediction::scalar, vw::sd, polylabel::simple, parameters::sparse, parameters::sparse_weights, GD::vec_add_multipredict(), and vw::weights.
void predict | ( | ftrl & | b, |
single_learner & | , | ||
example & | ec | ||
) |
Definition at line 79 of file ftrl.cc.
References ftrl::all, GD::finalize_prediction(), GD::inline_predict(), example::partial_prediction, example::pred, GD::print_audit_features(), polyprediction::scalar, and vw::sd.
|
inline |
Definition at line 63 of file ftrl.cc.
References uncertainty::b, ftrl::data, update_data::ftrl_alpha, update_data::ftrl_beta, update_data::l2_lambda, uncertainty::pred, uncertainty::score, sign(), W_G2, and W_XT.
Definition at line 301 of file ftrl.cc.
References ftrl::all, bin_text_read_write_fixed(), v_array< T >::empty(), io_buf::files, ftrl::ftrl_size, initialize_regressor(), GD::save_load_online_state(), GD::save_load_regressor(), vw::save_resume, and ftrl::total_weight.
Referenced by ftrl_setup().
float sensitivity | ( | ftrl & | b, |
base_learner & | , | ||
example & | ec | ||
) |
Definition at line 71 of file ftrl.cc.
References ftrl::all, and uncertainty::score.
Referenced by ftrl_setup().
|
inline |
Definition at line 55 of file ftrl.cc.
Referenced by inner_update_proximal(), and predict_with_confidence().
Definition at line 260 of file ftrl.cc.
References ftrl::all, ftrl::data, loss_function::first_derivative(), example::l, label_data::label, vw::loss, example::pred, polyprediction::scalar, vw::sd, polylabel::simple, update_data::update, and example::weight.
Referenced by learn_cb().
Definition at line 253 of file ftrl.cc.
References ftrl::all, ftrl::data, loss_function::first_derivative(), example::l, label_data::label, vw::loss, example::pred, polyprediction::scalar, vw::sd, polylabel::simple, update_data::update, and example::weight.
Referenced by learn_pistol().
Definition at line 246 of file ftrl.cc.
References ftrl::all, ftrl::data, loss_function::first_derivative(), example::l, label_data::label, vw::loss, example::pred, polyprediction::scalar, vw::sd, polylabel::simple, update_data::update, and example::weight.
Referenced by learn_proximal().
void update_state_and_predict_cb | ( | ftrl & | b, |
single_learner & | , | ||
example & | ec | ||
) |
Definition at line 222 of file ftrl.cc.
References ftrl::all, ftrl::data, GD::finalize_prediction(), update_data::normalized_squared_norm_x, vw::normalized_sum_norm_x, example::partial_prediction, example::pred, update_data::predict, polyprediction::scalar, vw::sd, ftrl::total_weight, and example::weight.
Referenced by learn_cb().
void update_state_and_predict_pistol | ( | ftrl & | b, |
single_learner & | , | ||
example & | ec | ||
) |
Definition at line 237 of file ftrl.cc.
References ftrl::all, ftrl::data, GD::finalize_prediction(), example::partial_prediction, example::pred, update_data::predict, polyprediction::scalar, and vw::sd.
Referenced by learn_pistol().