Vowpal Wabbit
|
Go to the source code of this file.
Functions | |
void | read_regressor_file (vw &all, std::vector< std::string > files, io_buf &io_temp) |
void | finalize_regressor (vw &all, std::string reg_name) |
void | initialize_regressor (vw &all) |
void | save_predictor (vw &all, std::string reg_name, size_t current_pass) |
void | save_load_header (vw &all, io_buf &model_file, bool read, bool text, std::string &file_options, VW::config::options_i &options) |
void | parse_mask_regressor_args (vw &all, std::string feature_mask, std::vector< std::string > initial_regressors) |
void finalize_regressor | ( | vw & | all, |
std::string | reg_name | ||
) |
Definition at line 561 of file parse_regressor.cc.
References dump_regressor(), vw::early_terminate, vw::inv_hash_regressor_name, vw::per_feature_regularizer_output, vw::per_feature_regularizer_text, vw::print_invert, and vw::text_regressor_name.
Referenced by GD::end_pass(), end_pass(), and VW::finish().
void initialize_regressor | ( | vw & | all | ) |
Definition at line 135 of file parse_regressor.cc.
References parameters::dense_weights, initialize_regressor(), parameters::sparse, parameters::sparse_weights, and vw::weights.
void parse_mask_regressor_args | ( | vw & | all, |
std::string | feature_mask, | ||
std::vector< std::string > | initial_regressors | ||
) |
Definition at line 598 of file parse_regressor.cc.
References io_buf::close_file(), vw::l, io_buf::open_file(), vw::options, io_buf::READ, LEARNER::learner< T, E >::save_load(), save_load_header(), parameters::set_zero(), and vw::weights.
Referenced by load_input_model().
Definition at line 581 of file parse_regressor.cc.
References io_buf::open_file(), vw::quiet, io_buf::READ, vw::stdin_off, and vw::trace_message.
Referenced by VW::initialize().
void save_load_header | ( | vw & | all, |
io_buf & | model_file, | ||
bool | read, | ||
bool | text, | ||
std::string & | file_options, | ||
VW::config::options_i & | options | ||
) |
Definition at line 169 of file parse_regressor.cc.
References VW::config::options_serializer_boost_po::add(), v_array< T >::begin(), io_buf::bin_read_fixed(), bin_text_read_write(), bin_text_read_write_fixed_validated(), vw::default_bits, default_buf_size, io_buf::files, VW::config::options_i::get_all_options(), vw::get_random_state(), io_buf::hash(), vw::id, vw::interactions, vw::lda, shared_data::max_label, shared_data::min_label, vw::model_file_ver, vw::ngram_strings, vw::num_bits, vw::pairs, resize_buf_if_needed(), safe_memcpy(), vw::save_resume, vw::sd, v_array< T >::size(), vw::skip_strings, io_buf::space, VW::config::options_serializer_boost_po::str(), THROW, prediction_type::to_string(), VW::version_struct::to_string(), vw::trace_message, vw::triples, uniform_hash(), VW::validate_default_bits(), VW::validate_num_bits(), VW::validate_version(), io_buf::verify_hash(), VW::version(), VERSION_FILE_WITH_HEADER_CHAINED_HASH, VERSION_FILE_WITH_HEADER_HASH, VERSION_FILE_WITH_HEADER_ID, VERSION_FILE_WITH_INTERACTIONS, VERSION_FILE_WITH_INTERACTIONS_IN_FO, VERSION_FILE_WITH_RANK_IN_HEADER, and VW::config::options_i::was_supplied().
Referenced by dump_regressor(), load_header_merge_options(), and parse_mask_regressor_args().
void save_predictor | ( | vw & | all, |
std::string | reg_name, | ||
size_t | current_pass | ||
) |
Definition at line 552 of file parse_regressor.cc.
References dump_regressor(), and vw::save_per_pass.
Referenced by GD::end_pass(), end_pass(), process_pass(), LEARNER::save(), and Search::train_single_example().