Vowpal Wabbit
|
Namespaces | |
cb_explore_adf | |
config | |
shared_feature_merger | |
Classes | |
struct | autolink |
struct | cb_sample_data |
struct | default_cleanup |
struct | no_lock_object_pool |
struct | object_pool |
struct | primitive_feature_space |
class | ptr_queue |
class | SpanningTree |
class | strict_parse_exception |
class | topk |
struct | v_array_allocator |
struct | v_array_deleter |
struct | value_object_pool |
struct | version_struct |
class | vw_argument_disagreement_exception |
class | vw_argument_invalid_value_exception |
class | vw_exception |
class | vw_unrecognised_option_exception |
Typedefs | |
typedef example &(* | example_factory_t) (void *) |
template<typename T > | |
using | v_array_pool = VW::value_object_pool< v_array< T >, v_array_allocator< T >, v_array_deleter< T > > |
Functions | |
uint32_t | convert (size_t number) |
void | copy_example_label (example *dst, example *src, size_t, void(*copy_label)(void *, void *)) |
void | copy_example_metadata (bool, example *dst, example *src) |
void | copy_example_data (bool audit, example *dst, example *src) |
void | copy_example_data (bool audit, example *dst, example *src, size_t label_size, void(*copy_label)(void *, void *)) |
void | move_feature_namespace (example *dst, example *src, namespace_index c) |
feature * | get_features (vw &all, example *ec, size_t &feature_map_len) |
void | return_features (feature *f) |
example * | alloc_examples (size_t, size_t count=1) |
void | dealloc_example (void(*delete_label)(void *), example &ec, void(*delete_prediction)(void *)) |
void | finish_example (vw &, example &) |
void | clean_example (vw &, example &, bool rewind) |
void | finish_example (vw &all, multi_ex &ec_seq) |
void | return_multiple_example (vw &all, v_array< example *> &examples) |
const char * | are_features_compatible (vw &vw1, vw &vw2) |
void | cmd_string_replace_value (std::stringstream *&ss, std::string flag_to_replace, std::string new_value) |
char ** | to_argv_escaped (std::string const &s, int &argc) |
char ** | to_argv (std::string const &s, int &argc) |
char ** | get_argv_from_string (std::string s, int &argc) |
void | free_args (int argc, char *argv[]) |
vw * | initialize (options_i &options, io_buf *model, bool skipModelLoad, trace_message_t trace_listener, void *trace_context) |
vw * | initialize (std::string s, io_buf *model, bool skipModelLoad, trace_message_t trace_listener, void *trace_context) |
vw * | initialize_escaped (std::string const &s, io_buf *model, bool skipModelLoad, trace_message_t trace_listener, void *trace_context) |
vw * | initialize (int argc, char *argv[], io_buf *model, bool skipModelLoad, trace_message_t trace_listener, void *trace_context) |
vw * | seed_vw_model (vw *vw_model, const std::string extra_args, trace_message_t trace_listener, void *trace_context) |
void | delete_dictionary_entry (substring ss, features *A) |
void | sync_stats (vw &all) |
void | finish (vw &all, bool delete_all) |
void | read_line (vw &all, example *ex, char *line) |
void | read_lines (vw *all, char *line, size_t, v_array< example *> &examples) |
example & | get_unused_example (vw *all) |
template<bool audit> | |
void | read_line_json (vw &all, v_array< example *> &examples, char *line, example_factory_t example_factory, void *ex_factory_context) |
void | apply_pdrop (vw &all, float pdrop, v_array< example *> &examples) |
template<bool audit> | |
void | read_line_decision_service_json (vw &all, v_array< example *> &examples, char *line, size_t length, bool copy_line, example_factory_t example_factory, void *ex_factory_context, DecisionServiceInteraction *data) |
void | save_predictor (vw &all, std::string reg_name) |
void | save_predictor (vw &all, io_buf &buf) |
void | setup_examples (vw &all, v_array< example *> &examples) |
void | setup_example (vw &all, example *ae) |
example * | new_unused_example (vw &all) |
example * | read_example (vw &all, char *example_line) |
example * | read_example (vw &all, std::string example_line) |
void | add_constant_feature (vw &vw, example *ec) |
void | add_label (example *ec, float label, float weight, float base) |
example * | import_example (vw &all, const std::string &label, primitive_feature_space *features, size_t len) |
primitive_feature_space * | export_example (vw &all, example *ec, size_t &len) |
void | releaseFeatureSpace (primitive_feature_space *features, size_t len) |
void | parse_example_label (vw &all, example &ec, std::string label) |
void | empty_example (vw &, example &ec) |
example * | get_example (parser *p) |
float | get_topic_prediction (example *ec, size_t i) |
float | get_label (example *ec) |
float | get_importance (example *ec) |
float | get_initial (example *ec) |
float | get_prediction (example *ec) |
float | get_cost_sensitive_prediction (example *ec) |
v_array< float > & | get_cost_sensitive_prediction_confidence_scores (example *ec) |
uint32_t * | get_multilabel_predictions (example *ec, size_t &len) |
float | get_action_score (example *ec, size_t i) |
size_t | get_action_score_length (example *ec) |
size_t | get_tag_length (example *ec) |
const char * | get_tag (example *ec) |
size_t | get_feature_number (example *ec) |
float | get_confidence (example *ec) |
void | start_parser (vw &all) |
void | end_parser (vw &all) |
bool | is_ring_example (vw &all, example *ae) |
const version_struct | version (PACKAGE_VERSION) |
const std::string | git_commit (COMMIT_VERSION) |
void | clear_example_data (example &) |
uint64_t | hash_space (vw &all, const std::string &s) |
uint64_t | hash_space_static (const std::string &s, const std::string &hash) |
uint64_t | hash_feature (vw &all, const std::string &s, uint64_t u) |
uint64_t | hash_feature_static (const std::string &s, uint64_t u, const std::string &h, uint32_t num_bits) |
uint64_t | hash_feature_cstr (vw &all, char *fstr, uint64_t u) |
float | get_weight (vw &all, uint32_t index, uint32_t offset) |
void | set_weight (vw &all, uint32_t index, uint32_t offset, float value) |
uint32_t | num_weights (vw &all) |
uint32_t | get_stride (vw &all) |
void | init_features (primitive_feature_space &fs, size_t features_count) |
void | set_feature (primitive_feature_space &fs, size_t index, uint64_t feature_hash, float value) |
void | validate_version (vw &all) |
void | validate_min_max_label (vw &all) |
void | validate_default_bits (vw &all, uint32_t local_num_bits) |
void | validate_num_bits (vw &all) |
typedef example&(* VW::example_factory_t) (void *) |
Definition at line 76 of file parse_primitives.h.
using VW::v_array_pool = typedef VW::value_object_pool<v_array<T>, v_array_allocator<T>, v_array_deleter<T> > |
Definition at line 21 of file v_array_pool.h.
Definition at line 774 of file parser.cc.
References vw::audit, constant, constant_namespace, example_predict::feature_space, vw::hash_inv, example_predict::indices, example::num_features, v_array< T >::push_back(), and example::total_sum_feat_sq.
Referenced by ezexample::ezexample(), and setup_example().
void VW::add_label | ( | example * | ec, |
float | label, | ||
float | weight, | ||
float | base | ||
) |
Definition at line 784 of file parser.cc.
References label_data::initial, example::l, label_data::label, polylabel::simple, and example::weight.
Referenced by VW_AddLabel().
example * VW::alloc_examples | ( | size_t | , |
size_t | count = 1 |
||
) |
Definition at line 204 of file example.cc.
References example_predict::ft_offset, and example::in_use.
Referenced by add_to_vali(), baseline_setup(), ExpReplay::expreplay_setup(), init_adf_data(), EntityRelationTask::initialize(), DepParserTask::initialize(), SequenceTask_DemoLDF::initialize(), and parse_dictionary_argument().
Definition at line 1374 of file parse_example_json.h.
References label_type::cb, label_type::ccb, and vw::label_type.
Referenced by read_line_decision_service_json().
Definition at line 501 of file parse_args.cc.
References vw::add_constant, vw::affix_features, vw::dictionary_path, parser::hasher, vw::ignore, vw::ignore_linear, vw::ignore_some, vw::ignore_some_linear, vw::interactions, vw::limit, vw::ngram, vw::num_bits, vw::p, vw::permutations, vw::redefine, vw::redefine_some, vw::skips, and vw::spelling_features.
Definition at line 867 of file parser.cc.
References parser::begin_parsed_examples, empty_example(), parser::example_pool, example::in_use, vw::p, and VW::object_pool< T, TInitializer, TCleanup >::return_object().
Referenced by dealloc_example(), finish_example(), and return_multiple_example().
void VW::clear_example_data | ( | example & | ) |
void VW::cmd_string_replace_value | ( | std::stringstream *& | ss, |
std::string | flag_to_replace, | ||
std::string | new_value | ||
) |
Definition at line 1570 of file parse_args.cc.
uint32_t VW::convert | ( | size_t | number | ) |
Definition at line 211 of file cache.cc.
References THROW.
Referenced by CCB::cache_label(), and utf16_to_utf8().
Definition at line 72 of file example.cc.
References c, copy_array(), copy_example_metadata(), example_predict::feature_space, example_predict::indices, example_predict::interactions, example::num_features, and example::total_sum_feat_sq.
Referenced by add_to_vali(), memory_tree_ns::copy_example_data(), copy_example_data(), copy_example_to_adf(), EntityRelationTask::predict_entity(), ExpReplay::predict_or_learn(), EntityRelationTask::predict_relation(), SequenceTask_DemoLDF::run(), Search::search_predict(), Search::predictor::set_input_at(), and ezexample::train().
void VW::copy_example_data | ( | bool | audit, |
example * | dst, | ||
example * | src, | ||
size_t | label_size, | ||
void(*)(void *, void *) | copy_label | ||
) |
Definition at line 86 of file example.cc.
References copy_example_data(), copy_example_label(), and CB::copy_label().
void VW::copy_example_label | ( | example * | dst, |
example * | src, | ||
size_t | , | ||
void(*)(void *, void *) | copy_label | ||
) |
Definition at line 40 of file example.cc.
References CB::copy_label(), and example::l.
Referenced by copy_example_data().
Definition at line 48 of file example.cc.
References example::confidence, copy_array(), features::deep_copy_from(), example::end_pass, example::example_counter, example_predict::ft_offset, example::in_use, example::loss, example::partial_prediction, example::passthrough, example::sorted, example::tag, example::test_only, and example::weight.
Referenced by copy_example_data(), predict_or_learn(), and sensitivity().
void VW::dealloc_example | ( | void(*)(void *) | delete_label, |
example & | ec, | ||
void(*)(void *) | delete_prediction | ||
) |
Definition at line 219 of file example.cc.
References clean_example(), CB::delete_label(), v_array< T >::delete_v(), features::delete_v(), example_predict::feature_space, finish_example(), example_predict::indices, example::l, example::passthrough, example::pred, and example::tag.
Referenced by memory_tree_ns::diag_kronecker_product_test(), EntityRelationTask::finish(), DepParserTask::finish(), SequenceTask_DemoLDF::finish(), Search::predictor::free_ec(), memory_tree_ns::free_example(), free_parser(), parse_dictionary_argument(), baseline::~baseline(), cbify::~cbify(), ExpReplay::expreplay< lp >::~expreplay(), nn::~nn(), Search::search::~search(), and warm_cb::~warm_cb().
Definition at line 1797 of file parse_args.cc.
References substring::begin, and features::delete_v().
Referenced by finish().
Definition at line 857 of file parser.cc.
Referenced by clean_example(), ezexample::finish(), and ezexample::setup_for_predict().
void VW::end_parser | ( | vw & | all | ) |
Definition at line 1007 of file parser.cc.
References vw::parse_thread.
Referenced by main(), VW_EndParser(), and VW_Finish_Passes().
primitive_feature_space * VW::export_example | ( | vw & | all, |
example * | ec, | ||
size_t & | len | ||
) |
Definition at line 812 of file parser.cc.
References f, example_predict::feature_space, VW::primitive_feature_space::fs, example_predict::indices, VW::primitive_feature_space::len, VW::primitive_feature_space::name, v_array< T >::size(), stride_shift(), parameters::stride_shift(), feature::weight_index, and vw::weights.
Referenced by VW_ExportExample().
void VW::finish | ( | vw & | all, |
bool | delete_all | ||
) |
Definition at line 1823 of file parse_args.cc.
References vw::all_reduce, v_array< T >::clear(), io_buf::close_file_or_socket(), vw::current_pass, delete_dictionary_entry(), v_array< T >::delete_v(), shared_data::example_number, vw::final_prediction_sink, vw::final_regressor_name, finalize_regressor(), finalize_source(), LEARNER::learner< T, E >::finish(), free_it(), free_parser(), get_best_constant(), shared_data::holdout_best_loss, shared_data::holdout_multiclass_log_loss, vw::holdout_set_off, vw::l, shared_data::ldict, vw::loaded_dictionaries, vw::loss, shared_data::multiclass_log_loss, vw::options, vw::p, parser::parse_name, shared_data::queries, vw::quiet, shared_data::report_multiclass_log_loss, vw::sd, parameters::seeded(), vw::should_delete_options, v_array< T >::size(), shared_data::sum_loss, shared_data::total_features, vw::trace_message, VW::config::options_i::was_supplied(), shared_data::weighted_examples(), shared_data::weighted_labeled_examples, shared_data::weighted_labels, vw::weights, and namedlabels::~namedlabels().
Referenced by audit_regressor_setup(), enable_sources(), initialize(), main(), parse_args(), and VW_Finish().
Definition at line 881 of file parser.cc.
References clean_example(), is_ring_example(), parser::output_done, parser::output_lock, and vw::p.
Referenced by audit_regressor_setup(), LEARNER::multi_example_handler< context_type >::complete_multi_ex(), dealloc_example(), LEARNER::drain_examples(), LEARNER::end_pass(), CB_ALGS::eval_finish_example(), ezexample::finish(), CB_ALGS::finish_example(), MULTICLASS::finish_example(), finish_example(), MWT::finish_example(), finish_example(), CB_EXPLORE::finish_example(), COST_SENSITIVE::finish_example(), finish_example_scores(), VW::cb_explore_adf::cb_explore_adf_base< ExploreType >::finish_multiline_example(), EXPLORE_EVAL::finish_multiline_example(), finish_multiline_example(), CB_ADF::finish_multiline_example(), CCB::finish_multiline_example(), CSOAA::finish_multiline_example(), Search::finish_multiline_example(), lda_setup(), learn(), multilabel_oaa_setup(), return_active_example(), return_confidence_example(), return_example(), no_label::return_no_label_example(), return_simple_example(), LEARNER::save(), sender_setup(), topk_setup(), VW_FinishExample(), and ezexample::~ezexample().
void VW::free_args | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 1648 of file parse_args.cc.
Referenced by initialize(), and initialize_escaped().
float VW::get_action_score | ( | example * | ec, |
size_t | i | ||
) |
Definition at line 932 of file parser.cc.
References polyprediction::a_s, example::pred, and v_array< T >::size().
Referenced by VW_GetActionScore().
size_t VW::get_action_score_length | ( | example * | ec | ) |
Definition at line 946 of file parser.cc.
References polyprediction::a_s, example::pred, and v_array< T >::size().
Referenced by VW_GetActionScoreLength().
char ** VW::get_argv_from_string | ( | std::string | s, |
int & | argc | ||
) |
float VW::get_confidence | ( | example * | ec | ) |
Definition at line 954 of file parser.cc.
References example::confidence.
Referenced by VW_GetConfidence().
float VW::get_cost_sensitive_prediction | ( | example * | ec | ) |
Definition at line 921 of file parser.cc.
References polyprediction::multiclass, and example::pred.
Referenced by VW_GetCostSensitivePrediction(), and VW_PredictCostSensitive().
Definition at line 909 of file parser.cc.
References VW::ptr_queue< T >::pop(), and parser::ready_parsed_examples.
Referenced by LEARNER::drain_examples(), LEARNER::ready_examples_queue::pop(), and VW_GetExample().
size_t VW::get_feature_number | ( | example * | ec | ) |
Definition at line 952 of file parser.cc.
References example::num_features.
Referenced by VW_GetFeatureNumber().
Definition at line 125 of file example.cc.
References v_array< T >::begin(), features_and_source::feature_map, features_and_source::mask, parameters::mask(), v_array< T >::size(), features_and_source::stride_shift, parameters::stride_shift(), and vw::weights.
Referenced by VW_GetFeatures().
float VW::get_importance | ( | example * | ec | ) |
Definition at line 915 of file parser.cc.
References example::weight.
Referenced by VW_GetImportance().
float VW::get_initial | ( | example * | ec | ) |
Definition at line 917 of file parser.cc.
References label_data::initial, example::l, and polylabel::simple.
Referenced by VW_GetInitial().
float VW::get_label | ( | example * | ec | ) |
Definition at line 913 of file parser.cc.
References example::l, label_data::label, and polylabel::simple.
Referenced by VW_GetLabel().
uint32_t * VW::get_multilabel_predictions | ( | example * | ec, |
size_t & | len | ||
) |
Definition at line 925 of file parser.cc.
References v_array< T >::begin(), MULTILABEL::labels::label_v, polyprediction::multilabels, example::pred, and v_array< T >::size().
Referenced by VW_GetMultilabelPredictions().
float VW::get_prediction | ( | example * | ec | ) |
Definition at line 919 of file parser.cc.
References example::pred, and polyprediction::scalar.
Referenced by receive_result(), VW_GetPrediction(), VW_Learn(), and VW_Predict().
|
inline |
Definition at line 189 of file vw.h.
References parameters::stride(), and vw::weights.
Referenced by VW_Get_Stride().
const char * VW::get_tag | ( | example * | ec | ) |
Definition at line 950 of file parser.cc.
References v_array< T >::begin(), and example::tag.
Referenced by VW_GetTag().
size_t VW::get_tag_length | ( | example * | ec | ) |
Definition at line 948 of file parser.cc.
References v_array< T >::size(), and example::tag.
Referenced by VW_GetTagLength().
float VW::get_topic_prediction | ( | example * | ec, |
size_t | i | ||
) |
Definition at line 911 of file parser.cc.
References example::pred, and polyprediction::scalars.
Referenced by VW_GetTopicPrediction().
Definition at line 664 of file parser.cc.
References parser::begin_parsed_examples, parser::example_pool, VW::object_pool< T, TInitializer, TCleanup >::get_object(), example::in_use, and vw::p.
Referenced by import_example(), line_to_examples_json(), new_unused_example(), parse_dispatch(), parse_line_json(), prepare_for_learner(), read_example(), and read_lines().
|
inline |
Definition at line 177 of file vw.h.
References parameters::stride_shift(), and vw::weights.
Referenced by SVRG::learn(), and VW_Get_Weight().
const std::string VW::git_commit | ( | COMMIT_VERSION | ) |
Referenced by parse_diagnostics().
|
inline |
Definition at line 153 of file vw.h.
References substring::begin, substring::end, parser::hasher, vw::p, and vw::parse_mask.
Referenced by Namespace< audit >::AddFeature(), DefaultState< audit >::Float(), ezexample::hash(), CCB::inject_slot_id(), and VW_HashFeatureA().
|
inline |
Definition at line 169 of file vw.h.
References substring::begin, substring::end, parser::hasher, vw::p, and vw::parse_mask.
Referenced by ezexample::hash().
|
inline |
Definition at line 160 of file vw.h.
References substring::begin, substring::end, and getHasher().
Referenced by VW_HashFeatureStaticA().
|
inline |
Definition at line 138 of file vw.h.
References substring::begin, substring::end, vw::hash_seed, parser::hasher, and vw::p.
Referenced by ezexample::addns(), CCB::ccb_explore_adf_setup(), ezexample::ezexample(), ezexample::hash(), Context< audit >::PushNamespace(), and VW_HashSpaceA().
|
inline |
Definition at line 145 of file vw.h.
References substring::begin, substring::end, and getHasher().
Referenced by VW_HashSpaceStaticA().
example * VW::import_example | ( | vw & | all, |
const std::string & | label, | ||
primitive_feature_space * | features, | ||
size_t | len | ||
) |
Definition at line 791 of file parser.cc.
References label_parser::default_label, parser::end_parsed_examples, example_predict::feature_space, VW::primitive_feature_space::fs, get_unused_example(), example_predict::indices, example::l, VW::primitive_feature_space::len, parser::lp, VW::primitive_feature_space::name, vw::p, parse_example_label(), v_array< T >::push_back(), setup_example(), feature::weight_index, and feature::x.
Referenced by VW_ImportExample().
|
inline |
Definition at line 191 of file vw.h.
References VW::primitive_feature_space::fs, and VW::primitive_feature_space::len.
Referenced by VW_InitFeatures().
vw * VW::initialize | ( | options_i & | options, |
io_buf * | model, | ||
bool | skipModelLoad, | ||
trace_message_t | trace_listener, | ||
void * | trace_context | ||
) |
Definition at line 1654 of file parse_args.cc.
References VW::config::options_i::check_unregistered(), finish(), VW::config::options_i::get_typed_option(), VW::config::options_i::help(), LEARNER::learner< T, E >::init_driver(), vw::initial_regressors, vw::l, load_header_merge_options(), parse_args(), parse_dictionary_argument(), parse_modules(), parse_sources(), vw::per_feature_regularizer_input, read_regressor_file(), vw::trace_message, and VW::config::options_i::was_supplied().
Referenced by initialize(), initialize_escaped(), seed_vw_model(), setup(), VW_InitializeA(), and VW_InitializeWithModel().
vw * VW::initialize | ( | std::string | s, |
io_buf * | model, | ||
bool | skipModelLoad, | ||
trace_message_t | trace_listener, | ||
void * | trace_context | ||
) |
Definition at line 1711 of file parse_args.cc.
References free_args(), initialize(), and to_argv().
vw * VW::initialize | ( | int | argc, |
char * | argv[], | ||
io_buf * | model, | ||
bool | skipModelLoad, | ||
trace_message_t | trace_listener, | ||
void * | trace_context | ||
) |
Definition at line 1752 of file parse_args.cc.
References initialize(), and vw::should_delete_options.
vw * VW::initialize_escaped | ( | std::string const & | s, |
io_buf * | model, | ||
bool | skipModelLoad, | ||
trace_message_t | trace_listener, | ||
void * | trace_context | ||
) |
Definition at line 1731 of file parse_args.cc.
References free_args(), initialize(), and to_argv_escaped().
Referenced by VW_InitializeEscapedA(), and VW_InitializeWithModelEscaped().
Definition at line 1009 of file parser.cc.
References parser::example_pool, VW::object_pool< T, TInitializer, TCleanup >::is_from_pool(), and vw::p.
Referenced by finish_example(), and ezexample::~ezexample().
void VW::move_feature_namespace | ( | example * | dst, |
example * | src, | ||
namespace_index | c | ||
) |
Definition at line 92 of file example.cc.
References v_array< T >::begin(), c, v_array< T >::end(), example_predict::feature_space, recall_tree_ns::find(), example_predict::indices, example::num_features, v_array< T >::push_back(), and example::total_sum_feat_sq.
Referenced by predict_or_learn().
Definition at line 753 of file parser.cc.
References parser::begin_parsed_examples, label_parser::default_label, example::example_counter, get_unused_example(), example::l, parser::lp, and vw::p.
Referenced by ezexample::get_new_example().
|
inline |
Definition at line 187 of file vw.h.
References vw::length().
Referenced by SVRG::learn(), vw_slim::vw_predict< W >::load(), and VW_Num_Weights().
Definition at line 846 of file parser.cc.
References v_array< T >::clear(), v_array< T >::delete_v(), example::l, parser::lp, vw::p, label_parser::parse_label, vw::sd, and tokenize().
Referenced by import_example(), ezexample::set_label(), LabelState< audit >::String(), and VW_AddStringLabel().
Definition at line 761 of file parser.cc.
References parser::end_parsed_examples, get_unused_example(), vw::p, read_line(), and setup_example().
Referenced by ezexample::finish(), read_example(), ezexample::setup_for_predict(), and VW_ReadExampleA().
Definition at line 487 of file parse_example.cc.
References substring::begin, substring::end, and substring_to_example().
Referenced by parse_dictionary_argument(), read_example(), and read_lines().
void VW::read_line_decision_service_json | ( | vw & | all, |
v_array< example *> & | examples, | ||
char * | line, | ||
size_t | length, | ||
bool | copy_line, | ||
example_factory_t | example_factory, | ||
void * | ex_factory_context, | ||
DecisionServiceInteraction * | data | ||
) |
Definition at line 1393 of file parse_example_json.h.
References apply_pdrop(), VWReaderHandler< audit >::ctx, VWReaderHandler< audit >::current_state(), VWReaderHandler< audit >::error(), json_parser< audit >::handler, VWReaderHandler< audit >::init(), BaseState< audit >::name, DecisionServiceInteraction::probabilityOfDrop, json_parser< audit >::reader, and THROW.
void VW::read_line_json | ( | vw & | all, |
v_array< example *> & | examples, | ||
char * | line, | ||
example_factory_t | example_factory, | ||
void * | ex_factory_context | ||
) |
Definition at line 1348 of file parse_example_json.h.
References VWReaderHandler< audit >::current_state(), VWReaderHandler< audit >::error(), json_parser< audit >::handler, VWReaderHandler< audit >::init(), BaseState< audit >::name, json_parser< audit >::reader, and THROW.
Definition at line 494 of file parse_example.cc.
References get_unused_example(), v_array< T >::push_back(), read_line(), v_array< T >::size(), and split().
Referenced by enable_sources().
void VW::releaseFeatureSpace | ( | primitive_feature_space * | features, |
size_t | len | ||
) |
void VW::return_features | ( | feature * | f | ) |
Definition at line 251 of file example.cc.
References clean_example().
Referenced by line_to_examples_json(), and parse_line_json().
void VW::save_predictor | ( | vw & | all, |
std::string | reg_name | ||
) |
Definition at line 642 of file parse_regressor.cc.
References dump_regressor().
Referenced by predict_or_learn(), VW_CopyModelData(), and VW_SaveModel().
Definition at line 644 of file parse_regressor.cc.
References dump_regressor().
vw * VW::seed_vw_model | ( | vw * | vw_model, |
const std::string | extra_args, | ||
trace_message_t | trace_listener, | ||
void * | trace_context | ||
) |
Definition at line 1765 of file parse_args.cc.
References VW::config::options_serializer_boost_po::add(), free_it(), VW::config::options_i::get_all_options(), initialize(), vw::options, vw::sd, parameters::shallow_copy(), VW::config::options_serializer_boost_po::str(), VW::config::options_i::was_supplied(), and vw::weights.
Referenced by VW_SeedWithModel().
|
inline |
Definition at line 197 of file vw.h.
References VW::primitive_feature_space::fs, feature::weight_index, and feature::x.
Referenced by VW_SetFeature().
|
inline |
Definition at line 182 of file vw.h.
References parameters::stride_shift(), and vw::weights.
Referenced by SVRG::learn(), GD::save_load(), and VW_Set_Weight().
Definition at line 678 of file parser.cc.
References vw::add_constant, add_constant_feature(), v_array< T >::begin(), cache_features(), label_parser::cache_label, parser::emptylines_separate_examples, v_array< T >::end(), parser::end_parsed_examples, INTERACTIONS::eval_count_of_generated_ft(), example::example_counter, example_is_newline(), feature_limit(), example_predict::feature_space, generateGrams(), label_parser::get_weight, vw::holdout_after, vw::holdout_period, vw::holdout_set_off, vw::ignore, vw::ignore_some, parser::in_pass_counter, example_predict::indices, vw::interactions, is_test_only(), example::l, vw::limit_strings, example::loss, parser::lp, vw::ngram_strings, example::num_features, parser::output, vw::p, vw::parse_mask, example::partial_prediction, parser::sort_features, example::sorted, parameters::stride_shift(), label_parser::test_label, example::test_only, example::total_sum_feat_sq, unique_sort_features(), example::weight, vw::weights, vw::wpp, and parser::write_cache.
Referenced by import_example(), read_example(), and setup_examples().
Definition at line 673 of file parser.cc.
References setup_example().
Referenced by parse_dispatch().
void VW::start_parser | ( | vw & | all | ) |
Definition at line 974 of file parser.cc.
References main_parse_loop(), and vw::parse_thread.
Referenced by main(), VW_Finish_Passes(), and VW_StartParser().
void VW::sync_stats | ( | vw & | all | ) |
Definition at line 1804 of file parse_args.cc.
References accumulate_scalar(), vw::all_reduce, shared_data::example_number, loss(), vw::sd, shared_data::sum_loss, shared_data::total_features, shared_data::weighted_labeled_examples, shared_data::weighted_labels, and shared_data::weighted_unlabeled_examples.
Referenced by main().
char ** VW::to_argv | ( | std::string const & | s, |
int & | argc | ||
) |
Definition at line 1623 of file parse_args.cc.
References c, and tokenize().
Referenced by get_argv_from_string(), and initialize().
char ** VW::to_argv_escaped | ( | std::string const & | s, |
int & | argc | ||
) |
Definition at line 1604 of file parse_args.cc.
References escaped_tokenize().
Referenced by initialize_escaped().
void VW::validate_default_bits | ( | vw & | all, |
uint32_t | local_num_bits | ||
) |
Definition at line 26 of file vw_validate.cc.
References vw::default_bits, vw::num_bits, and THROW.
Referenced by save_load_header().
void VW::validate_min_max_label | ( | vw & | all | ) |
Definition at line 20 of file vw_validate.cc.
References shared_data::max_label, shared_data::min_label, vw::sd, and THROW.
void VW::validate_num_bits | ( | vw & | all | ) |
Definition at line 32 of file vw_validate.cc.
References vw::num_bits, and THROW.
Referenced by parse_feature_tweaks(), and save_load_header().
void VW::validate_version | ( | vw & | all | ) |
Definition at line 12 of file vw_validate.cc.
References LAST_COMPATIBLE_VERSION, vw::model_file_ver, THROW, and VW::version_struct::to_string().
Referenced by save_load_header().
const version_struct VW::version | ( | PACKAGE_VERSION | ) |
Referenced by cache_numbits(), Program::Main(), make_write_cache(), parse_diagnostics(), and save_load_header().