Vowpal Wabbit
|
#include <global_data.h>
Public Member Functions | |
void | learn (example &) |
void | learn (multi_ex &) |
void | predict (example &) |
void | predict (multi_ex &) |
void | finish_example (example &) |
void | finish_example (multi_ex &) |
size_t | length () |
vw () | |
std::shared_ptr< rand_state > | get_random_state () |
vw (const vw &)=delete | |
vw & | operator= (const vw &)=delete |
vw (const vw &&)=delete | |
vw & | operator= (const vw &&)=delete |
Private Attributes | |
std::shared_ptr< rand_state > | _random_state_sp = std::make_shared<rand_state>() |
Definition at line 369 of file global_data.h.
vw::vw | ( | ) |
Definition at line 262 of file global_data.cc.
References all_reduce(), loss(), print_raw_text(), print_result(), set_mm(), and label_type::simple.
|
delete |
|
delete |
void vw::finish_example | ( | example & | ec | ) |
Definition at line 175 of file global_data.cc.
References LEARNER::as_singleline(), LEARNER::learner< T, E >::finish_example(), and THROW.
void vw::finish_example | ( | multi_ex & | ec | ) |
Definition at line 183 of file global_data.cc.
References LEARNER::as_multiline(), LEARNER::learner< T, E >::finish_example(), and THROW.
|
inline |
Definition at line 553 of file global_data.h.
References binary_print_result(), compile_gram(), compile_limits(), f, get_prediction(), noop_mm(), print_result(), and print_tag().
Referenced by active_cover_setup(), active_setup(), boosting_setup(), bs_setup(), cb_explore_setup(), cb_sample_setup(), explore_eval_setup(), ExpReplay::expreplay_setup(), kernel_svm_setup(), memory_tree_setup(), nn_setup(), oaa_setup(), OjaNewton_setup(), parse_modules(), recall_tree_setup(), save_load_header(), Search::search_initialize(), VW::cb_explore_adf::bag::setup(), and warm_cb_setup().
void vw::learn | ( | example & | ec | ) |
Definition at line 137 of file global_data.cc.
References LEARNER::as_singleline(), LEARNER::learner< T, E >::learn(), LEARNER::learner< T, E >::predict(), example::test_only, and THROW.
Referenced by ezexample::finish(), LEARNER::learn_ex(), LEARNER::learn_multi_ex(), ezexample::setup_for_predict(), ezexample::train(), and VW_Learn().
void vw::learn | ( | multi_ex & | ec | ) |
Definition at line 148 of file global_data.cc.
References LEARNER::as_multiline(), LEARNER::learner< T, E >::learn(), LEARNER::learner< T, E >::predict(), and THROW.
|
inline |
Definition at line 513 of file global_data.h.
Referenced by depthsbits_create(), depthsbits_sizeof(), enable_sources(), learn_batch(), mwt_setup(), VW::num_weights(), sanity_check_state(), save_load(), sort_data_ensure_sz(), sort_data_update_support(), and un_ft_offset().
void vw::predict | ( | example & | ec | ) |
Definition at line 159 of file global_data.cc.
References LEARNER::as_singleline(), LEARNER::learner< T, E >::predict(), and THROW.
void vw::predict | ( | multi_ex & | ec | ) |
Definition at line 167 of file global_data.cc.
References LEARNER::as_multiline(), LEARNER::learner< T, E >::predict(), and THROW.
|
private |
Definition at line 372 of file global_data.h.
bool vw::active |
Definition at line 489 of file global_data.h.
Referenced by active_setup(), enable_sources(), kernel_svm_setup(), and parse_source().
bool vw::add_constant |
Definition at line 496 of file global_data.h.
Referenced by VW::are_features_compatible(), ezexample::ezexample(), lda_setup(), parse_feature_tweaks(), and VW::setup_example().
std::array<uint64_t, NUM_NAMESPACES> vw::affix_features |
Definition at line 476 of file global_data.h.
Referenced by VW::are_features_compatible(), parse_affix_argument(), and TC_parser< audit >::TC_parser().
AllReduce* vw::all_reduce |
Definition at line 381 of file global_data.h.
Referenced by accumulate_avg(), all_reduce(), GD::end_pass(), end_pass(), VW::finish(), kernel_svm_setup(), learn(), parse_args(), parse_diagnostics(), process_pass(), summarize_holdout_set(), sync_queries(), and VW::sync_stats().
AllReduceType vw::all_reduce_type |
Definition at line 380 of file global_data.h.
Referenced by all_reduce(), and parse_args().
bool vw::audit |
Definition at line 486 of file global_data.h.
Referenced by VW::add_constant_feature(), Search::add_example_conditioning(), Search::add_neighbor_features(), Search::add_new_feature(), GD::audit_feature(), audit_regressor_setup(), bfgs_setup(), enable_sources(), finish_setup(), ftrl_setup(), learn_batch(), CCB::learn_or_predict(), mf_predict(), parse_diagnostics(), ExpReplay::predict_or_learn(), predict_or_learn(), GD::print_audit_features(), Search::search_predict(), GD::setup(), substring_to_example(), and ezexample::train().
bool vw::bfgs |
Definition at line 412 of file global_data.h.
Referenced by bfgs_setup(), end_pass(), Search::might_print_update(), 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(), reset_seed(), setup(), and Search::should_print_update().
size_t vw::check_holdout_every_n_passes |
Definition at line 503 of file global_data.h.
Referenced by GD::end_pass(), end_pass(), and Search::setup().
LEARNER::base_learner* vw::cost_sensitive |
Definition at line 385 of file global_data.h.
Referenced by cb_explore_setup(), cs_active_setup(), CSOAA::csldf_setup(), CSOAA::csoaa_setup(), learn_sup_adf(), and VW::cb_explore_adf::cover::setup().
uint64_t vw::current_pass |
Definition at line 396 of file global_data.h.
Referenced by GD::audit_feature(), MULTICLASS::direct_print_update(), LEARNER::end_pass(), GD::end_pass(), end_pass(), VW::finish(), Search::must_run_test(), 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(), Search::print_update(), CB_EXPLORE::print_update_cb_explore(), return_example(), GD::save_load_online_state(), and summarize_holdout_set().
bool vw::daemon |
Definition at line 405 of file global_data.h.
Referenced by enable_sources(), parse_source(), and reset_source().
std::string vw::data_filename |
Definition at line 403 of file global_data.h.
Referenced by enable_sources(), and parse_source().
bool vw::default_bits |
Definition at line 399 of file global_data.h.
Referenced by parse_feature_tweaks(), save_load_header(), and VW::validate_default_bits().
void(* vw::delete_prediction) (void *) |
Definition at line 485 of file global_data.h.
Referenced by cb_adf_setup(), cb_explore_setup(), cbify_setup(), cbifyldf_setup(), CCB::ccb_explore_adf_setup(), CSOAA::csldf_setup(), explore_eval_setup(), free_parser(), lda_setup(), memory_tree_setup(), multilabel_oaa_setup(), mwt_setup(), oaa_setup(), VW::cb_explore_adf::softmax::setup(), VW::cb_explore_adf::greedy::setup(), VW::cb_explore_adf::first::setup(), VW::cb_explore_adf::bag::setup(), VW::cb_explore_adf::cover::setup(), VW::cb_explore_adf::regcb::setup(), and warm_cb_setup().
std::vector<std::string> vw::dictionary_path |
Definition at line 478 of file global_data.h.
Referenced by VW::are_features_compatible(), parse_dictionary_argument(), and parse_feature_tweaks().
bool vw::do_reset_source |
Definition at line 498 of file global_data.h.
Referenced by parse_dispatch(), and VW_Finish_Passes().
bool vw::early_terminate |
Definition at line 500 of file global_data.h.
Referenced by LEARNER::drain_examples(), finalize_regressor(), and set_done().
float vw::eta |
Definition at line 531 of file global_data.h.
Referenced by GD::end_pass(), end_pass(), gd_mf_setup(), GD::get_scale(), lda_setup(), learn_batch(), mf_train(), parse_args(), parse_example_tweaks(), parse_modules(), predict_or_learn(), GD::setup(), and SVRG::update_inner().
float vw::eta_decay_rate |
Definition at line 532 of file global_data.h.
Referenced by GD::end_pass(), end_pass(), parse_args(), parse_modules(), and GD::setup().
std::string vw::feature_mask |
Definition at line 438 of file global_data.h.
Referenced by load_input_model(), and parse_args().
v_array<int> vw::final_prediction_sink |
Definition at line 518 of file global_data.h.
Referenced by enable_sources(), VW::finish(), finish_example(), MULTICLASS::finish_example(), MWT::finish_example(), finish_example_scores(), VW::cb_explore_adf::cb_explore_adf_base< ExploreType >::finish_multiline_example(), EXPLORE_EVAL::finish_multiline_example(), CB_ADF::finish_multiline_example(), CCB::finish_multiline_example(), CSOAA::global_print_newline(), Search::must_run_test(), 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(), CB_ADF::output_example(), CSOAA::output_example(), CCB::output_example(), CB_ADF::output_rank_example(), CSOAA::output_rank_example(), parse_output_preds(), reset_source(), return_example(), and Search::train_single_example().
std::string vw::final_regressor_name |
Definition at line 535 of file global_data.h.
Referenced by GD::end_pass(), end_pass(), VW::finish(), parse_output_model(), predict_or_learn(), process_pass(), LEARNER::save(), Search::train_single_example(), and VW_SaveModel().
bool vw::hash_inv |
Definition at line 541 of file global_data.h.
Referenced by VW::add_constant_feature(), GD::audit_feature(), bfgs_setup(), enable_sources(), finish_setup(), ftrl_setup(), parse_output_model(), predict_or_learn(), GD::setup(), and substring_to_example().
uint32_t vw::hash_seed |
Definition at line 401 of file global_data.h.
Referenced by VW::hash_space(), parse_feature_tweaks(), and TC_parser< audit >::TC_parser().
bool vw::hessian_on |
Definition at line 413 of file global_data.h.
Referenced by bfgs_setup(), and process_pass().
uint32_t vw::holdout_after |
Definition at line 502 of file global_data.h.
Referenced by parse_example_tweaks(), and VW::setup_example().
uint32_t vw::holdout_period |
Definition at line 501 of file global_data.h.
Referenced by parse_example_tweaks(), and VW::setup_example().
bool vw::holdout_set_off |
Definition at line 499 of file global_data.h.
Referenced by bfgs_setup(), MULTICLASS::direct_print_update(), GD::end_pass(), end_pass(), VW::finish(), ftrl_setup(), gd_mf_setup(), Search::must_run_test(), CSOAA::output_example_seq(), parse_example_tweaks(), parse_source(), 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(), Search::print_update(), CB_EXPLORE::print_update_cb_explore(), process_pass(), return_example(), GD::setup(), and VW::setup_example().
std::string vw::id |
Definition at line 417 of file global_data.h.
Referenced by parse_output_model(), and save_load_header().
std::array<bool, NUM_NAMESPACES> vw::ignore |
Definition at line 463 of file global_data.h.
Referenced by VW::are_features_compatible(), ezexample::ensure_ns_exists(), parse_feature_tweaks(), and VW::setup_example().
std::array<bool, NUM_NAMESPACES> vw::ignore_linear |
Definition at line 465 of file global_data.h.
Referenced by VW::are_features_compatible(), GD::foreach_feature(), GD::inline_predict(), and parse_feature_tweaks().
bool vw::ignore_some |
Definition at line 462 of file global_data.h.
Referenced by VW::are_features_compatible(), ezexample::ensure_ns_exists(), parse_feature_tweaks(), and VW::setup_example().
bool vw::ignore_some_linear |
Definition at line 464 of file global_data.h.
Referenced by VW::are_features_compatible(), GD::foreach_feature(), GD::inline_predict(), and parse_feature_tweaks().
time_t vw::init_time |
Definition at line 533 of file global_data.h.
Referenced by parse_args().
float vw::initial_constant |
Definition at line 410 of file global_data.h.
Referenced by parse_feature_tweaks(), and GD::setup().
std::vector<std::string> vw::initial_regressors |
Definition at line 436 of file global_data.h.
Referenced by VW::initialize(), load_input_model(), and parse_args().
float vw::initial_t |
Definition at line 530 of file global_data.h.
Referenced by gd_mf_setup(), lda_setup(), parse_args(), save_load(), GD::save_load(), GD::save_load_online_state(), and GD::setup().
float vw::initial_weight |
Definition at line 409 of file global_data.h.
Referenced by initialize_regressor(), parse_args(), and GD::save_load().
std::vector<std::string> vw::interactions |
Definition at line 457 of file global_data.h.
Referenced by VW::are_features_compatible(), audit_regressor(), baseline_setup(), CCB::ccb_explore_adf_setup(), ExpReplay::expreplay_setup(), finish_setup(), INTERACTIONS::generate_interactions(), init_adf_data(), EntityRelationTask::initialize(), DepParserTask::initialize(), SequenceTask_DemoLDF::initialize(), parse_feature_tweaks(), save_load_header(), VW::setup_example(), and synthetic_reset().
std::string vw::inv_hash_regressor_name |
Definition at line 511 of file global_data.h.
Referenced by finalize_regressor(), and parse_output_model().
bool vw::invariant_updates |
Definition at line 490 of file global_data.h.
Referenced by GD::set_learn(), and GD::setup().
LEARNER::base_learner* vw::l |
Definition at line 383 of file global_data.h.
Referenced by LEARNER::drain_examples(), dump_regressor(), LEARNER::end_pass(), VW::finish(), LEARNER::generic_driver_onethread(), init_driver(), VW::initialize(), LEARNER::learn_ex(), LEARNER::learn_multi_ex(), load_input_model(), parse_mask_regressor_args(), parse_reductions(), parse_sources(), VW_Predict(), and VW_PredictCostSensitive().
float vw::l1_lambda |
Definition at line 444 of file global_data.h.
Referenced by GD::compute_update(), and parse_example_tweaks().
float vw::l2_lambda |
Definition at line 445 of file global_data.h.
Referenced by GD::compute_update(), kernel_svm_setup(), mf_train(), parse_example_tweaks(), process_pass(), save_load(), and save_load_regularizer().
label_type::label_type_t vw::label_type |
Definition at line 550 of file global_data.h.
Referenced by VW::apply_pdrop(), cb_adf_setup(), cb_algs_setup(), CCB::ccb_explore_adf_setup(), CSOAA::csldf_setup(), CSOAA::csoaa_setup(), LabelObjectState< audit >::EndObject(), DefaultState< audit >::EndObject(), LEARNER::example_is_newline_not_header(), explore_eval_setup(), memory_tree_setup(), multilabel_oaa_setup(), mwt_setup(), VW::cb_explore_adf::softmax::setup(), VW::cb_explore_adf::greedy::setup(), VW::cb_explore_adf::first::setup(), VW::cb_explore_adf::bag::setup(), VW::cb_explore_adf::cover::setup(), VW::cb_explore_adf::regcb::setup(), Search::setup(), MultiState< audit >::StartArray(), and MultiState< audit >::StartObject().
uint32_t vw::lda |
Definition at line 508 of file global_data.h.
Referenced by audit_regressor(), audit_regressor_lda(), average_diff(), end_examples(), ldamath::expdigammify(), ldamath::expdigammify_2(), ldamath::fastdigamma(), lda_setup(), learn_batch(), parse_example_tweaks(), GD::print_features(), GD::print_lda_features(), save_load(), and save_load_header().
std::array<uint32_t, NUM_NAMESPACES> vw::limit |
Definition at line 474 of file global_data.h.
Referenced by VW::are_features_compatible(), feature_limit(), and parse_feature_tweaks().
std::vector<std::string> vw::limit_strings |
Definition at line 473 of file global_data.h.
Referenced by parse_feature_tweaks(), and VW::setup_example().
std::vector<dictionary_info> vw::loaded_dictionaries |
Definition at line 483 of file global_data.h.
Referenced by VW::finish(), and parse_dictionary_argument().
loss_function* vw::loss |
Definition at line 523 of file global_data.h.
Referenced by baseline_setup(), bs_predict_mean(), MARGINAL::compute_expert_loss(), GD::compute_update(), cs_active_setup(), CSOAA::csldf_setup(), VW::finish(), get_best_constant(), GD::get_pred_per_update(), SVRG::gradient_scalar(), kernel_svm_setup(), learn(), log_multi_setup(), MARGINAL::make_marginal(), mf_predict(), mf_train(), oaa_setup(), parse_example_tweaks(), predict_and_gradient(), predict_or_learn(), predict_or_learn_multi(), process_example(), receive_result(), update_after_prediction_cb(), update_after_prediction_pistol(), update_after_prediction_proximal(), MARGINAL::update_marginal(), and update_preconditioner().
size_t vw::max_examples |
Definition at line 539 of file global_data.h.
Referenced by parse_dispatch(), and parse_example_tweaks().
VW::version_struct vw::model_file_ver |
Definition at line 419 of file global_data.h.
Referenced by cb_adf_setup(), save_load(), GD::save_load(), save_load_header(), GD::save_load_online_state(), and VW::validate_version().
std::map<std::string, size_t> vw::name_index_map |
Definition at line 548 of file global_data.h.
Referenced by GD::audit_feature(), and GD::save_load_regressor().
std::array<std::vector<feature_dict*>, NUM_NAMESPACES> vw::namespace_dictionaries {} |
Definition at line 482 of file global_data.h.
Referenced by parse_dictionary_argument(), and TC_parser< audit >::TC_parser().
std::array<uint32_t, NUM_NAMESPACES> vw::ngram |
Definition at line 471 of file global_data.h.
Referenced by VW::are_features_compatible(), generateGrams(), and parse_feature_tweaks().
std::vector<std::string> vw::ngram_strings |
Definition at line 469 of file global_data.h.
Referenced by free_parser(), parse_feature_tweaks(), save_load_header(), and VW::setup_example().
bool vw::no_bias |
Definition at line 446 of file global_data.h.
Referenced by add_regularization(), and parse_example_tweaks().
bool vw::nonormalize |
Definition at line 497 of file global_data.h.
bool vw::normal_weights |
Definition at line 494 of file global_data.h.
Referenced by initialize_regressor(), and parse_args().
size_t vw::normalized_idx |
Definition at line 506 of file global_data.h.
Referenced by do_weighting(), GD::set_learn(), and sort_data_update_support().
double vw::normalized_sum_norm_x |
Definition at line 420 of file global_data.h.
Referenced by ftrl_setup(), GD::get_pred_per_update(), GD::save_load_online_state(), GD::setup(), and update_state_and_predict_cb().
uint32_t vw::num_bits |
Definition at line 398 of file global_data.h.
Referenced by accumulate(), accumulate_avg(), accumulate_weighted_avg(), VW::are_features_compatible(), bfgs_iter_middle(), OjaNewton::check(), compute_coherence_metrics(), get_top_weights(), initialize_regressor(), OjaNewton::initialize_Z(), lda_setup(), make_write_cache(), parse_cache(), parse_dispatch(), parse_feature_tweaks(), parse_modules(), preconditioner_to_regularizer(), save_load(), save_load_header(), GD::save_load_online_state(), GD::save_load_regressor(), save_load_regularizer(), VW::validate_default_bits(), and VW::validate_num_bits().
size_t vw::num_children |
Definition at line 406 of file global_data.h.
Referenced by enable_sources(), and parse_source().
size_t vw::numpasses |
Definition at line 451 of file global_data.h.
Referenced by audit_regressor_setup(), bfgs_setup(), end_pass(), memory_tree_setup(), parse_dispatch(), parse_example_tweaks(), parse_modules(), parse_source(), parse_sources(), GD::setup(), Search::setup(), and VW_Finish_Passes().
VW::config::options_i* vw::options |
Definition at line 428 of file global_data.h.
Referenced by CSOAA::csldf_setup(), CSOAA::csoaa_setup(), dump_regressor(), enable_sources(), Search::end_examples(), GD::end_pass(), Search::end_pass(), VW::finish(), get_best_constant(), Search::handle_condition_options(), init_driver(), parse_args(), parse_mask_regressor_args(), VW::seed_vw_model(), and Search::setup().
parser* vw::p |
Definition at line 377 of file global_data.h.
Referenced by VW::are_features_compatible(), cb_adf_setup(), cb_algs_setup(), cbify_setup(), cbifyldf_setup(), CCB::ccb_explore_adf_setup(), VW::clean_example(), cs_active_setup(), CSOAA::csldf_setup(), CSOAA::csoaa_setup(), LEARNER::drain_examples(), ect_setup(), enable_sources(), end_pass_example(), DefaultState< audit >::EndObject(), explore_eval_setup(), VW::finish(), VW::finish_example(), free_parser(), generateGrams(), LEARNER::generic_driver_onethread(), ezexample::get_new_example(), VW::get_unused_example(), VW::hash_feature(), VW::hash_feature_cstr(), VW::hash_space(), VW::import_example(), VWReaderHandler< audit >::init(), VW::is_ring_example(), lda_setup(), learn(), log_multi_setup(), make_write_cache(), memory_tree_setup(), ezexample::mini_setup_example(), multilabel_oaa_setup(), mwt_setup(), VW::new_unused_example(), oaa_setup(), parse_args(), parse_cache(), parse_dictionary_argument(), parse_dispatch(), VW::parse_example_label(), parse_example_tweaks(), parse_feature_tweaks(), parse_line_json(), parse_source(), read_cached_features(), VW::read_example(), read_features(), recall_tree_setup(), receive_result(), reset_source(), sender_setup(), set_done(), Search::search::set_label_parser(), VW::cb_explore_adf::softmax::setup(), VW::cb_explore_adf::greedy::setup(), VW::cb_explore_adf::first::setup(), VW::cb_explore_adf::bag::setup(), VW::cb_explore_adf::cover::setup(), VW::cb_explore_adf::regcb::setup(), Search::setup(), VW::setup_example(), LabelObjectState< audit >::StartObject(), MultiState< audit >::StartObject(), SlotsState< audit >::StartObject(), substring_to_example(), TC_parser< audit >::TC_parser(), thread_dispatch(), ezexample::train(), VW_GetExample(), and warm_cb_setup().
std::vector<std::string> vw::pairs |
Definition at line 459 of file global_data.h.
Referenced by GraphTask::add_edge_features(), finish(), DepParserTask::initialize(), mf_predict(), mf_print_offset_features(), mf_setup(), mf_train(), ezexample::mini_setup_example(), parse_feature_tweaks(), and save_load_header().
uint64_t vw::parse_mask |
Definition at line 453 of file global_data.h.
Referenced by audit_regressor_lda(), feature_limit(), flatten_sort_example(), VW::hash_feature(), VW::hash_feature_cstr(), learn(), parse_cache(), GD::print_lda_features(), VW::setup_example(), and TC_parser< audit >::TC_parser().
std::thread vw::parse_thread |
Definition at line 378 of file global_data.h.
Referenced by VW::end_parser(), and VW::start_parser().
size_t vw::pass_length |
Definition at line 450 of file global_data.h.
Referenced by parse_dispatch(), and parse_example_tweaks().
size_t vw::passes_complete |
Definition at line 452 of file global_data.h.
Referenced by end_pass(), SVRG::learn(), learn_with_metrics(), and parse_dispatch().
std::string vw::per_feature_regularizer_input |
Definition at line 440 of file global_data.h.
Referenced by VW::initialize(), parse_args(), and save_load().
std::string vw::per_feature_regularizer_output |
Definition at line 441 of file global_data.h.
Referenced by finalize_regressor(), parse_output_model(), and save_load().
std::string vw::per_feature_regularizer_text |
Definition at line 442 of file global_data.h.
Referenced by finalize_regressor(), parse_output_model(), and save_load().
bool vw::permutations |
Definition at line 454 of file global_data.h.
Referenced by VW::are_features_compatible(), audit_regressor(), INTERACTIONS::eval_count_of_generated_ft(), GD::foreach_feature(), INTERACTIONS::generate_interactions(), GD::inline_predict(), and parse_feature_tweaks().
float vw::power_t |
Definition at line 447 of file global_data.h.
Referenced by gd_mf_setup(), learn_batch(), mf_train(), parse_args(), parse_modules(), and GD::setup().
bool vw::preserve_performance_counters |
Definition at line 416 of file global_data.h.
Referenced by parse_output_model(), and GD::save_load_online_state().
void(* vw::print) (int, float, float, v_array< char >) |
Definition at line 521 of file global_data.h.
Referenced by enable_sources(), MULTICLASS::finish_example(), output_and_account_confidence_example(), output_and_account_example(), no_label::output_and_account_no_label_example(), CB_ALGS::output_example(), COST_SENSITIVE::output_example(), output_example(), CB_ADF::output_example(), CSOAA::output_example(), and reset_source().
bool vw::print_invert |
Definition at line 542 of file global_data.h.
Referenced by finalize_regressor(), and GD::save_load_regressor().
void(* vw::print_text) (int, std::string, v_array< char >) |
Definition at line 522 of file global_data.h.
Referenced by MULTICLASS::finish_example(), finish_example_scores(), EXPLORE_EVAL::output_example(), VW::cb_explore_adf::cb_explore_adf_base< ExploreType >::output_example(), CB_ALGS::output_example(), MULTILABEL::output_example(), CB_EXPLORE::output_example(), COST_SENSITIVE::output_example(), output_example(), CB_ADF::output_example(), CSOAA::output_example(), VW::cb_explore_adf::cb_explore_adf_base< ExploreType >::output_example_seq(), EXPLORE_EVAL::output_example_seq(), output_example_seq(), CB_ADF::output_example_seq(), CSOAA::output_example_seq(), CB_ADF::output_rank_example(), CSOAA::output_rank_example(), predict_or_learn(), predict_or_learn_multi(), Search::single_prediction_notLDF(), and Search::train_single_example().
char* vw::program_name |
Definition at line 525 of file global_data.h.
bool vw::progress_add |
Definition at line 545 of file global_data.h.
Referenced by MULTICLASS::direct_print_update(), finish_example(), parse_diagnostics(), 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(), Search::print_update(), CB_EXPLORE::print_update_cb_explore(), and return_example().
float vw::progress_arg |
Definition at line 546 of file global_data.h.
Referenced by MULTICLASS::direct_print_update(), finish_example(), parse_diagnostics(), 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(), Search::print_update(), CB_EXPLORE::print_update_cb_explore(), and return_example().
bool vw::quiet |
Definition at line 487 of file global_data.h.
Referenced by bfgs_iter_middle(), bfgs_iter_start(), bfgs_setup(), boosting_setup(), classweight_setup(), enable_sources(), ExpReplay::expreplay_setup(), EXPLORE_EVAL::finish(), finish(), VW::finish(), finish_example(), ftrl_setup(), init_driver(), interact_setup(), SVRG::learn(), lrq_setup(), memory_tree_setup(), Search::might_print_update(), Search::must_run_test(), nn_setup(), parse_args(), parse_diagnostics(), parse_dictionary_argument(), parse_example_tweaks(), parse_feature_tweaks(), parse_modules(), parse_output_model(), parse_output_preds(), parse_sources(), no_label::print_no_label_update(), print_update(), MULTILABEL::print_update(), MULTICLASS::print_update(), CB::print_update(), COST_SENSITIVE::print_update(), CCB::print_update(), Search::print_update(), CB_EXPLORE::print_update_cb_explore(), process_pass(), read_regressor_file(), recall_tree_setup(), return_example(), LEARNER::save(), save_load(), setup(), Search::should_print_update(), and wolfe_eval().
bool vw::random_positive_weights |
Definition at line 493 of file global_data.h.
Referenced by initialize_regressor(), and mf_setup().
uint64_t vw::random_seed |
Definition at line 491 of file global_data.h.
Referenced by lrq_setup(), nn_setup(), and parse_modules().
bool vw::random_weights |
Definition at line 492 of file global_data.h.
Referenced by gd_mf_setup(), initialize_regressor(), lda_setup(), parse_args(), and save_load().
int vw::raw_prediction |
Definition at line 519 of file global_data.h.
Referenced by finish_example(), Search::must_run_test(), oaa_setup(), 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(), COST_SENSITIVE::output_example(), output_example(), CB_ADF::output_example(), CSOAA::output_example(), VW::cb_explore_adf::cb_explore_adf_base< ExploreType >::output_example_seq(), EXPLORE_EVAL::output_example_seq(), output_example_seq(), CB_ADF::output_example_seq(), CSOAA::output_example_seq(), CB_ADF::output_rank_example(), CSOAA::output_rank_example(), parse_output_preds(), predict_or_learn(), predict_or_learn_multi(), Search::single_prediction_notLDF(), and Search::train_single_example().
std::array<unsigned char, NUM_NAMESPACES> vw::redefine |
Definition at line 468 of file global_data.h.
Referenced by VW::are_features_compatible(), parse_feature_tweaks(), and TC_parser< audit >::TC_parser().
bool vw::redefine_some |
Definition at line 467 of file global_data.h.
Referenced by VW::are_features_compatible(), parse_feature_tweaks(), and TC_parser< audit >::TC_parser().
std::stack<LEARNER::base_learner* (*)(VW::config::options_i&, vw&)> vw::reduction_stack |
Definition at line 513 of file global_data.h.
Referenced by parse_reductions(), and setup_base().
int vw::reg_mode |
Definition at line 448 of file global_data.h.
Referenced by GD::compute_update(), parse_example_tweaks(), and GD::setup().
bool vw::save_per_pass |
Definition at line 408 of file global_data.h.
Referenced by GD::end_pass(), end_pass(), parse_output_model(), process_pass(), and save_predictor().
bool vw::save_resume |
Definition at line 415 of file global_data.h.
Referenced by GD::end_pass(), parse_output_model(), SVRG::save_load(), save_load(), GD::save_load(), save_load_header(), and GD::setup().
LEARNER::single_learner* vw::scorer |
Definition at line 384 of file global_data.h.
Referenced by cb_adf_setup(), cb_algs_setup(), cb_explore_setup(), scorer_setup(), and VW::cb_explore_adf::cover::setup().
shared_data* vw::sd |
Definition at line 375 of file global_data.h.
Referenced by GD::audit_feature(), bfgs_predict(), bfgs_setup(), bs_predict_mean(), cb_adf_setup(), MARGINAL::compute_expert_loss(), GD::compute_update(), cs_active_setup(), CSOAA::csldf_setup(), MULTICLASS::direct_print_update(), dis_test(), enable_sources(), GD::end_pass(), LabelObjectState< audit >::EndObject(), VW::finish(), MULTICLASS::finish_example(), finish_example(), MWT::finish_example(), finish_example_scores(), ftrl_setup(), gd_mf_setup(), get_best_constant(), GD::get_scale(), getLossFunction(), SVRG::gradient_scalar(), init_driver(), inner_loop(), learn(), learn_batch(), MARGINAL::make_marginal(), mf_predict(), mf_train(), Search::might_print_update(), multipredict(), GD::multipredict(), oaa_setup(), 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(), CSOAA::output_example(), CCB::output_example(), output_example_seq(), CSOAA::output_example_seq(), CSOAA::output_rank_example(), parse_args(), parse_diagnostics(), VW::parse_example_label(), parse_example_tweaks(), parse_modules(), SVRG::predict(), predict(), GD::predict(), predict_and_gradient(), predict_or_learn(), predict_or_learn_active(), predict_or_learn_active_cover(), predict_or_learn_multi(), predict_or_learn_simulation(), SVRG::predict_stable(), Search::search::pretty_label(), MULTICLASS::print_label_pred(), no_label::print_no_label_update(), MULTICLASS::print_probability(), MULTICLASS::print_score(), print_update(), MULTILABEL::print_update(), MULTICLASS::print_update(), CB::print_update(), COST_SENSITIVE::print_update(), CCB::print_update(), Search::print_update(), CB_EXPLORE::print_update_cb_explore(), process_example(), process_pass(), query_decision(), read_cached_features(), receive_result(), return_example(), save_load(), save_load_header(), GD::save_load_online_state(), save_load_sampling(), VW::seed_vw_model(), Search::select_learner(), GD::setup(), Search::should_print_update(), substring_to_example(), summarize_holdout_set(), VW::sync_stats(), GD::sync_weights(), Search::train_single_example(), update(), update_after_prediction_cb(), update_after_prediction_pistol(), update_after_prediction_proximal(), MARGINAL::update_marginal(), update_preconditioner(), update_state_and_predict_cb(), update_state_and_predict_pistol(), and VW::validate_min_max_label().
void* vw::searchstr |
Definition at line 430 of file global_data.h.
Referenced by setup(), and Search::setup().
void(* vw::set_minmax) (shared_data *sd, float label) |
Definition at line 394 of file global_data.h.
Referenced by cs_active_setup(), getLossFunction(), learn(), mf_predict(), parse_example_tweaks(), predict_and_gradient(), predict_or_learn(), predict_or_learn_multi(), and update().
bool vw::should_delete_options = false |
Definition at line 427 of file global_data.h.
Referenced by VW::finish(), and VW::initialize().
std::vector<std::string> vw::skip_strings |
Definition at line 470 of file global_data.h.
Referenced by parse_feature_tweaks(), and save_load_header().
std::array<uint32_t, NUM_NAMESPACES> vw::skips |
Definition at line 472 of file global_data.h.
Referenced by VW::are_features_compatible(), generateGrams(), and parse_feature_tweaks().
std::array<bool, NUM_NAMESPACES> vw::spelling_features |
Definition at line 477 of file global_data.h.
Referenced by VW::are_features_compatible(), parse_feature_tweaks(), and TC_parser< audit >::TC_parser().
bool vw::stdin_off |
Definition at line 527 of file global_data.h.
Referenced by audit_regressor_setup(), dump_regressor(), enable_sources(), make_write_cache(), parse_cache(), parse_dictionary_argument(), parse_source(), read_regressor_file(), and reset_source().
int vw::stdout_fileno |
Definition at line 434 of file global_data.h.
Referenced by mf_print_audit_features(), and GD::print_audit_features().
std::string vw::text_regressor_name |
Definition at line 510 of file global_data.h.
Referenced by finalize_regressor(), and parse_output_model().
bool vw::tnormal_weights |
Definition at line 495 of file global_data.h.
Referenced by initialize_regressor(), and parse_args().
vw_ostream vw::trace_message |
Definition at line 424 of file global_data.h.
Referenced by accumulate_weighted_avg(), cb_adf_setup(), classweight_setup(), contains_valid_namespaces(), cs_active_setup(), CSOAA::csldf_setup(), enable_sources(), end_pass(), EXPLORE_EVAL::finish(), finish(), VW::finish(), init_driver(), VW::initialize(), learn(), lrq_setup(), make_hot_sv(), make_write_cache(), memory_tree_setup(), oaa_setup(), parse_args(), parse_cache(), parse_diagnostics(), parse_dictionary_argument(), parse_example_tweaks(), parse_feature_tweaks(), parse_modules(), parse_output_model(), parse_output_preds(), parse_source(), print_ex(), read_cached_features(), read_regressor_file(), recall_tree_setup(), LEARNER::save(), save_load(), GD::save_load(), save_load_header(), setup(), VW::cb_explore_adf::cover::setup(), VW::cb_explore_adf::regcb::setup(), GD::setup(), CSOAA::test_ldf_sequence(), train(), and svm_params::~svm_params().
bool vw::training |
Definition at line 488 of file global_data.h.
Referenced by GD::audit_feature(), bfgs_setup(), confidence_setup(), CSOAA::csldf_setup(), Search::end_examples(), Search::end_pass(), learn(), recall_tree_ns::learn(), nn_setup(), parse_example_tweaks(), predict_or_learn_multi(), recall_tree_setup(), GD::save_load(), GD::save_load_online_state(), Search::search_predict(), GD::setup(), Search::setup(), train(), and Search::train_single_example().
std::vector<std::string> vw::triples |
Definition at line 461 of file global_data.h.
Referenced by DepParserTask::initialize(), mf_predict(), mf_print_offset_features(), mf_train(), parse_feature_tweaks(), and save_load_header().
bool vw::vw_is_main = false |
Definition at line 421 of file global_data.h.
Referenced by Search::must_run_test(), Search::search::set_label_parser(), Search::search::set_options(), setup(), and Search::train_single_example().
parameters vw::weights |
Definition at line 537 of file global_data.h.
Referenced by Search::add_example_conditioning(), Search::add_neighbor_features(), Search::add_new_feature(), recall_tree_ns::add_node_id_feature(), add_regularization(), ezexample::addf(), GD::audit_feature(), audit_regressor(), audit_regressor_feature(), audit_regressor_lda(), autolink_setup(), bfgs_iter_middle(), bfgs_iter_start(), bfgs_setup(), CCB::ccb_explore_adf_setup(), OjaNewton::check(), compute_coherence_metrics(), copy_example_to_adf(), derivative_in_direction(), direction_magnitude(), enable_sources(), end_examples(), GD::end_pass(), VW::export_example(), DepParserTask::extract_features(), finalize_preconditioner(), VW::finish(), finish_setup(), flatten_example(), GD::foreach_feature(), ftrl_setup(), gd_mf_setup(), INTERACTIONS::generate_interactions(), VW::get_features(), Search::search::get_mask(), VW::get_stride(), Search::search::get_stride_shift(), get_top_weights(), VW::get_weight(), init_driver(), init_global(), initialize_regressor(), GD::inline_predict(), lda_loop(), lda_setup(), learn_batch(), learn_with_metrics(), MARGINAL::make_marginal(), mf_predict(), mf_print_offset_features(), mf_train(), multiply(), multipredict(), GD::multipredict(), OjaNewton_setup(), parse_args(), parse_mask_regressor_args(), parse_sources(), preconditioner_to_regularizer(), predict_or_learn(), MWT::predict_or_learn(), GD::print_lda_features(), print_setup(), process_pass(), regularizer_direction_magnitude(), regularizer_to_weight(), sanity_check_state(), MARGINAL::save_load(), GD::save_load(), save_load(), memory_tree_ns::save_load_memory_tree(), GD::save_load_online_state(), GD::save_load_regressor(), VW::seed_vw_model(), GD::set_learn(), VW::set_weight(), GraphTask::setup(), GD::setup(), VW::setup_example(), sort_data_update_support(), stride_shift(), stride_un_shift(), svrg_setup(), GD::sync_weights(), un_ft_offset(), MARGINAL::update_marginal(), update_weight(), MWT::value_policy(), wid_mask(), wid_mask_un_shifted(), wolfe_eval(), zero_derivative(), zero_preconditioner(), and zero_state().
uint32_t vw::wpp |
Definition at line 432 of file global_data.h.
Referenced by constant_feat(), DepParserTask::extract_features(), init_global(), CCB::inject_slot_id(), lrq_setup(), lrqfa_setup(), parse_sources(), GraphTask::setup(), and VW::setup_example().