Vowpal Wabbit
|
#include <global_data.h>
Public Member Functions | |
double | weighted_examples () |
void | update (bool test_example, bool labeled_example, float loss, float weight, size_t num_features) |
void | update_dump_interval (bool progress_add, float progress_arg) |
void | print_update (bool holdout_set_off, size_t current_pass, float label, float prediction, size_t num_features, bool progress_add, float progress_arg) |
void | print_update (bool holdout_set_off, size_t current_pass, uint32_t label, uint32_t prediction, size_t num_features, bool progress_add, float progress_arg) |
void | print_update (bool holdout_set_off, size_t current_pass, const std::string &label, uint32_t prediction, size_t num_features, bool progress_add, float progress_arg) |
void | print_update (bool holdout_set_off, size_t current_pass, const std::string &label, const std::string &prediction, size_t num_features, bool progress_add, float progress_arg) |
Public Attributes | |
size_t | queries |
uint64_t | example_number |
uint64_t | total_features |
double | t |
double | weighted_labeled_examples |
double | old_weighted_labeled_examples |
double | weighted_unlabeled_examples |
double | weighted_labels |
double | sum_loss |
double | sum_loss_since_last_dump |
float | dump_interval |
double | gravity |
double | contraction |
float | min_label |
float | max_label |
namedlabels * | ldict |
double | weighted_holdout_examples |
double | weighted_holdout_examples_since_last_dump |
double | holdout_sum_loss_since_last_dump |
double | holdout_sum_loss |
double | holdout_best_loss |
double | weighted_holdout_examples_since_last_pass |
double | holdout_sum_loss_since_last_pass |
size_t | holdout_best_pass |
bool | report_multiclass_log_loss |
double | multiclass_log_loss |
double | holdout_multiclass_log_loss |
bool | is_more_than_two_labels_observed |
float | first_observed_label |
float | second_observed_label |
Static Public Attributes | |
static constexpr int | col_avg_loss = 8 |
static constexpr int | prec_avg_loss = 6 |
static constexpr int | col_since_last = 8 |
static constexpr int | prec_since_last = 6 |
static constexpr int | col_example_counter = 12 |
static constexpr int | col_example_weight = col_example_counter + 2 |
static constexpr int | prec_example_weight = 1 |
static constexpr int | col_current_label = 8 |
static constexpr int | prec_current_label = 4 |
static constexpr int | col_current_predict = 8 |
static constexpr int | prec_current_predict = 4 |
static constexpr int | col_current_features = 8 |
Definition at line 133 of file global_data.h.
|
inline |
Definition at line 225 of file global_data.h.
References CB::print_update().
Referenced by MULTICLASS::direct_print_update(), MULTICLASS::print_label_pred(), no_label::print_no_label_update(), MULTICLASS::print_probability(), MULTICLASS::print_score(), print_update(), MULTILABEL::print_update(), CB::print_update(), COST_SENSITIVE::print_update(), CCB::print_update(), CB_EXPLORE::print_update_cb_explore(), and return_example().
|
inline |
Definition at line 243 of file global_data.h.
References CB::print_update().
|
inline |
Definition at line 260 of file global_data.h.
References CB::print_update().
|
inline |
Definition at line 270 of file global_data.h.
|
inline |
Definition at line 190 of file global_data.h.
References loss().
Referenced by MULTICLASS::finish_example(), MWT::finish_example(), finish_example_scores(), output_and_account_confidence_example(), output_and_account_example(), no_label::output_and_account_no_label_example(), EXPLORE_EVAL::output_example(), VW::cb_explore_adf::cb_explore_adf_base< ExploreType >::output_example(), CB_ALGS::output_example(), MULTILABEL::output_example(), output_example(), CB_EXPLORE::output_example(), COST_SENSITIVE::output_example(), CCB::output_example(), return_example(), and Search::train_single_example().
|
inline |
Definition at line 215 of file global_data.h.
Referenced by finish_example(), and Search::print_update().
|
inline |
Definition at line 188 of file global_data.h.
Referenced by VW::finish(), Search::might_print_update(), MULTILABEL::print_update(), MULTICLASS::print_update(), CB::print_update(), COST_SENSITIVE::print_update(), CCB::print_update(), CB_EXPLORE::print_update_cb_explore(), return_example(), save_load(), and Search::should_print_update().
|
static |
Definition at line 175 of file global_data.h.
Referenced by setup().
|
static |
Definition at line 186 of file global_data.h.
Referenced by setup().
|
static |
Definition at line 182 of file global_data.h.
Referenced by init_driver(), CCB::print_update(), and setup().
|
static |
Definition at line 184 of file global_data.h.
Referenced by CB::print_update(), COST_SENSITIVE::print_update(), CCB::print_update(), and setup().
|
static |
Definition at line 179 of file global_data.h.
Referenced by init_driver(), print_ex(), and setup().
|
static |
Definition at line 180 of file global_data.h.
Referenced by init_driver(), and setup().
|
static |
Definition at line 177 of file global_data.h.
Referenced by setup().
double shared_data::contraction |
Definition at line 149 of file global_data.h.
Referenced by GD::audit_feature(), GD::compute_update(), GD::end_pass(), multipredict(), GD::multipredict(), GD::predict(), GD::setup(), and GD::sync_weights().
float shared_data::dump_interval |
Definition at line 147 of file global_data.h.
Referenced by finish_example(), init_driver(), Search::might_print_update(), parse_diagnostics(), no_label::print_no_label_update(), print_update(), MULTILABEL::print_update(), MULTICLASS::print_update(), CB::print_update(), COST_SENSITIVE::print_update(), CCB::print_update(), CB_EXPLORE::print_update_cb_explore(), return_example(), GD::save_load_online_state(), and Search::should_print_update().
uint64_t shared_data::example_number |
Definition at line 137 of file global_data.h.
Referenced by GD::finalize_prediction(), VW::finish(), init_driver(), output_example_seq(), CSOAA::output_example_seq(), Search::print_update(), GD::save_load_online_state(), Search::select_learner(), and VW::sync_stats().
float shared_data::first_observed_label |
Definition at line 171 of file global_data.h.
Referenced by count_label(), and get_best_constant().
double shared_data::gravity |
Definition at line 148 of file global_data.h.
Referenced by GD::audit_feature(), GD::compute_update(), GD::end_pass(), multipredict(), GD::multipredict(), GD::predict(), GD::setup(), and GD::sync_weights().
double shared_data::holdout_best_loss |
Definition at line 161 of file global_data.h.
Referenced by bfgs_setup(), VW::finish(), ftrl_setup(), gd_mf_setup(), GD::setup(), and summarize_holdout_set().
size_t shared_data::holdout_best_pass |
Definition at line 164 of file global_data.h.
Referenced by summarize_holdout_set().
double shared_data::holdout_multiclass_log_loss |
Definition at line 168 of file global_data.h.
Referenced by VW::finish(), finish_example_scores(), and CSOAA::output_example_seq().
double shared_data::holdout_sum_loss |
Definition at line 159 of file global_data.h.
Referenced by Search::print_update().
double shared_data::holdout_sum_loss_since_last_dump |
Definition at line 158 of file global_data.h.
Referenced by Search::print_update().
double shared_data::holdout_sum_loss_since_last_pass |
Definition at line 163 of file global_data.h.
Referenced by process_pass(), and summarize_holdout_set().
bool shared_data::is_more_than_two_labels_observed |
Definition at line 170 of file global_data.h.
Referenced by count_label(), and get_best_constant().
namedlabels* shared_data::ldict |
Definition at line 153 of file global_data.h.
Referenced by VW::finish(), MULTICLASS::finish_example(), finish_example_scores(), oaa_setup(), COST_SENSITIVE::output_example(), parse_example_tweaks(), MULTICLASS::parse_label(), COST_SENSITIVE::parse_label(), Search::search::pretty_label(), MULTICLASS::print_label_pred(), MULTICLASS::print_update(), and COST_SENSITIVE::print_update().
float shared_data::max_label |
Definition at line 151 of file global_data.h.
Referenced by GD::finalize_prediction(), squaredloss::first_derivative(), squaredloss::getLoss(), getLossFunction(), squaredloss::getRevertingWeight(), classic_squaredloss::getRevertingWeight(), quantileloss::getRevertingWeight(), parse_example_tweaks(), predict_or_learn(), predict_or_learn_active(), predict_or_learn_multi(), save_load_header(), GD::save_load_online_state(), set_mm(), and VW::validate_min_max_label().
float shared_data::min_label |
Definition at line 150 of file global_data.h.
Referenced by GD::finalize_prediction(), squaredloss::first_derivative(), squaredloss::getLoss(), getLossFunction(), squaredloss::getRevertingWeight(), classic_squaredloss::getRevertingWeight(), quantileloss::getRevertingWeight(), parse_example_tweaks(), predict_or_learn(), predict_or_learn_active(), predict_or_learn_multi(), save_load_header(), GD::save_load_online_state(), squaredloss::second_derivative(), set_mm(), and VW::validate_min_max_label().
double shared_data::multiclass_log_loss |
Definition at line 167 of file global_data.h.
Referenced by VW::finish(), finish_example_scores(), and CSOAA::output_example_seq().
double shared_data::old_weighted_labeled_examples |
Definition at line 142 of file global_data.h.
Referenced by Search::print_update(), and GD::save_load_online_state().
|
static |
Definition at line 176 of file global_data.h.
|
static |
Definition at line 183 of file global_data.h.
|
static |
Definition at line 185 of file global_data.h.
|
static |
Definition at line 181 of file global_data.h.
|
static |
Definition at line 178 of file global_data.h.
size_t shared_data::queries |
Definition at line 135 of file global_data.h.
Referenced by VW::finish(), inner_loop(), predict_or_learn(), predict_or_learn_active_cover(), and predict_or_learn_simulation().
bool shared_data::report_multiclass_log_loss |
Definition at line 166 of file global_data.h.
Referenced by CSOAA::csldf_setup(), VW::finish(), and oaa_setup().
float shared_data::second_observed_label |
Definition at line 172 of file global_data.h.
Referenced by count_label(), and get_best_constant().
double shared_data::sum_loss |
Definition at line 145 of file global_data.h.
Referenced by VW::finish(), learn_batch(), output_example(), CSOAA::output_example(), CSOAA::output_rank_example(), predict_or_learn_active_cover(), Search::print_update(), query_decision(), GD::save_load_online_state(), and VW::sync_stats().
double shared_data::sum_loss_since_last_dump |
Definition at line 146 of file global_data.h.
Referenced by learn_batch(), output_example(), CSOAA::output_example(), CSOAA::output_rank_example(), Search::print_update(), and GD::save_load_online_state().
double shared_data::t |
Definition at line 140 of file global_data.h.
Referenced by dis_test(), gd_mf_setup(), GD::get_scale(), mf_train(), parse_args(), parse_modules(), predict_or_learn_active_cover(), predict_or_learn_simulation(), query_decision(), GD::save_load_online_state(), and GD::setup().
uint64_t shared_data::total_features |
Definition at line 138 of file global_data.h.
Referenced by VW::finish(), output_example(), CSOAA::output_example(), CSOAA::output_rank_example(), GD::save_load_online_state(), and VW::sync_stats().
double shared_data::weighted_holdout_examples |
Definition at line 156 of file global_data.h.
Referenced by GD::get_scale(), and Search::print_update().
double shared_data::weighted_holdout_examples_since_last_dump |
Definition at line 157 of file global_data.h.
Referenced by Search::print_update().
double shared_data::weighted_holdout_examples_since_last_pass |
Definition at line 162 of file global_data.h.
Referenced by process_pass(), and summarize_holdout_set().
double shared_data::weighted_labeled_examples |
Definition at line 141 of file global_data.h.
Referenced by VW::finish(), get_best_constant(), output_example_seq(), CSOAA::output_example_seq(), no_label::print_no_label_update(), print_update(), Search::print_update(), query_decision(), GD::save_load_online_state(), save_load_sampling(), and VW::sync_stats().
double shared_data::weighted_labels |
Definition at line 144 of file global_data.h.
Referenced by VW::finish(), get_best_constant(), output_and_account_confidence_example(), output_and_account_example(), output_example(), GD::save_load_online_state(), and VW::sync_stats().
double shared_data::weighted_unlabeled_examples |
Definition at line 143 of file global_data.h.
Referenced by finish_example(), GD::get_scale(), output_and_account_confidence_example(), output_and_account_example(), CSOAA::output_example_seq(), no_label::print_no_label_update(), print_update(), GD::save_load_online_state(), save_load_sampling(), and VW::sync_stats().