Vowpal Wabbit
|
Go to the source code of this file.
Classes | |
struct | one_float |
Functions | |
char * | run_len_decode (char *p, uint64_t &i) |
char * | run_len_encode (char *p, uint64_t i) |
int64_t | ZigZagDecode (uint64_t n) |
size_t | read_cached_tag (io_buf &cache, example *ae) |
struct one_float | __attribute__ ((packed)) |
int | read_cached_features (vw *all, v_array< example *> &examples) |
uint64_t | ZigZagEncode (int64_t n) |
void | output_byte (io_buf &cache, unsigned char s) |
void | output_features (io_buf &cache, unsigned char index, features &fs, uint64_t mask) |
void | cache_tag (io_buf &cache, v_array< char > tag) |
void | cache_features (io_buf &cache, example *ae, uint64_t mask) |
Variables | |
constexpr size_t | int_size = 11 |
constexpr size_t | char_size = 2 |
constexpr size_t | neg_1 = 1 |
constexpr size_t | general = 2 |
float | f |
struct one_float __attribute__ | ( | (packed) | ) |
Definition at line 203 of file cache.cc.
References cache_tag(), example_predict::feature_space, example_predict::indices, output_byte(), output_features(), v_array< T >::size(), and example::tag.
Referenced by VW::setup_example().
Definition at line 192 of file cache.cc.
References v_array< T >::begin(), io_buf::buf_write(), c, io_buf::set(), and v_array< T >::size().
Referenced by cache_features(), and learn().
void output_byte | ( | io_buf & | cache, |
unsigned char | s | ||
) |
Definition at line 144 of file cache.cc.
References io_buf::buf_write(), c, and io_buf::set().
Referenced by cache_features(), and send_features().
Definition at line 153 of file cache.cc.
References io_buf::buf_write(), c, one_float::f, general, int_size, neg_1, run_len_encode(), io_buf::set(), features::size(), features::values, and ZigZagEncode().
Referenced by cache_features(), and send_features().
Definition at line 65 of file cache.cc.
References io_buf::buf_read(), c, char_size, example_predict::feature_space, general, example_predict::indices, parser::input, example::l, parser::lp, neg_1, vw::p, v_array< T >::push_back(), features::push_back(), label_parser::read_cached_label, read_cached_tag(), run_len_decode(), vw::sd, io_buf::set(), example::sorted, parser::sorted_cache, vw::trace_message, and ZigZagDecode().
Referenced by enable_sources(), parse_cache(), and reset_source().
|
inline |
Definition at line 16 of file cache.cc.
Referenced by read_cached_features().
|
inline |
Definition at line 25 of file cache.cc.
Referenced by output_features().
|
inline |
Definition at line 37 of file cache.cc.
Referenced by read_cached_features().
|
inline |
Definition at line 138 of file cache.cc.
Referenced by output_features().
constexpr size_t char_size = 2 |
Definition at line 12 of file cache.cc.
Referenced by read_cached_features().
float f |
Definition at line 40 of file cache.cc.
Referenced by active_cover_setup(), DepParserTask::add_all_features(), DepParserTask::add_feature(), addbufs(), all_reduce(), AllReduceThreads::all_reduce(), AllReduceSockets::all_reduce_init(), Search::allowed_actions_to_label(), BASELINE::baseline_enabled(), bfgs_iter_middle(), VW::cb_explore_adf::regcb::cb_explore_adf_regcb::binary_search(), binarySearch(), boosting_setup(), bs_predict_vote(), cb_adf_setup(), cb_data_epsilon_0_skype_jb_test_runner(), cb_explore_setup(), cbify_setup(), cbifyldf_setup(), collision_cleanup(), Beam::beam< T >::compact(), compute_coherence_metrics(), OjaNewton::compute_delta(), recall_tree_ns::compute_recall_lbest(), cs_active_setup(), memory_tree_ns::diag_kronecker_prod_fs_test(), CSOAA::do_actual_learning_wap(), CB::ec_is_example_header(), enable_sources(), end_examples(), VW::export_example(), memory_tree_ns::F1_score_for_two_examples(), ldamath::fastdigamma(), fastexp(), ldamath::fastexp(), ldamath::fastlgamma(), fastpow2(), ldamath::fastpow2(), fasttanh(), finalize_preconditioner(), finalize_source(), find_cost_range(), find_in_path(), FloatToFloatState< audit >::Float(), float_of_substring(), Search::BaseTask::foreach_action(), GD::foreach_feature(), polar_normal_weights_wrapper< T >::func(), gd_mf_setup(), GEN_CS::gen_cs_example(), generate_cb_data_5(), get_active_coin_bias(), CLASSWEIGHTS::classweights::get_class_weight(), CB_EXPLORE::get_cover_probabilities(), get_pmin(), vw::get_random_state(), get_threshold(), hingeloss::getLoss(), logloss::getLoss(), poisson_loss::getLoss(), squaredloss::getUpdate(), glf1(), CB_ADF::global_print_newline(), CSOAA::global_print_newline(), Search::handle_condition_options(), EntityRelationTask::initialize(), ArgmaxTask::initialize(), OjaNewton::initialize_Z(), CSOAA::inner_loop(), inner_update_pistol_state_and_predict(), Beam::beam< T >::insert(), is_number(), kernel_svm_setup(), lda_loop(), lda_setup(), learn(), learn_batch(), learn_with_metrics(), memory_tree_ns::linear_kernel(), linear_kernel(), MARGINAL::make_marginal(), make_write_cache(), Search::BaseTask::maybe_override_prediction(), memory_tree_setup(), mf_print_offset_features(), OjaNewton_setup(), output_and_account_confidence_example(), output_and_account_example(), no_label::output_and_account_no_label_example(), MULTILABEL::output_example(), CB_EXPLORE::output_example(), parse_cache(), parse_example_tweaks(), CB::parse_label(), COST_SENSITIVE::parse_label(), CCB::parse_label(), parse_output_preds(), Beam::beam< T >::pop_best_item(), Search::BaseTask::post_prediction(), preconditioner_to_regularizer(), vw_slim::vw_predict< W >::predict(), MWT::predict_or_learn(), predict_or_learn(), predict_or_learn_active(), predict_or_learn_active_cover(), CB_EXPLORE::predict_or_learn_cover(), VW::cb_explore_adf::greedy::cb_explore_adf_greedy::predict_or_learn_impl(), VW::cb_explore_adf::bag::cb_explore_adf_bag::predict_or_learn_impl(), VW::cb_explore_adf::cover::cb_explore_adf_cover::predict_or_learn_impl(), predict_or_learn_multi(), GD::print_features(), GD::print_lda_features(), process_pass(), query_decision(), Search::random_policy(), Search::read_allowed_transitions(), comp_io_buf::read_file(), io_buf::read_file(), recall_tree_setup(), BASELINE::reset_baseline_disabled(), comp_io_buf::reset_file(), reset_source(), return_example(), ACTION_SCORE::reverse_order(), VW::SpanningTree::Run(), GraphTask::run(), run_predict_in_memory(), GEN_CS::safe_probability(), Search::safediv(), save_load(), save_load_sampling(), BASELINE::set_baseline_enabled(), LEARNER::learner< CB_EXPLORE::cb_explore, example >::set_end_examples(), LEARNER::learner< CB_EXPLORE::cb_explore, example >::set_end_pass(), LEARNER::learner< CB_EXPLORE::cb_explore, example >::set_finish(), LEARNER::learner< CB_EXPLORE::cb_explore, example >::set_finish_example(), LEARNER::learner< CB_EXPLORE::cb_explore, example >::set_init_driver(), VW::cb_explore_adf::softmax::setup(), VW::cb_explore_adf::greedy::setup(), VW::cb_explore_adf::cover::setup(), VW::cb_explore_adf::regcb::setup(), GD::setup(), Search::setup(), setup_lambdas(), sign(), memory_tree_ns::single_query_and_learn(), MultiState< audit >::StartArray(), vw_slim::stride_shift_guard::stride_shift_guard(), summarize_holdout_set(), TEST(), TEST_P(), recall_tree_ns::to_prob(), DepParserTask::transition_eager(), DepParserTask::transition_hybrid(), OjaNewton::update_eigenvalues(), VW_GetFeatureSpace(), VW_ImportExample(), VW_ReleaseFeatureSpace(), VW_SetFeatureSpace(), warm_cb_setup(), Search::BaseTask::with_output_string(), and vw_slim::stride_shift_guard::~stride_shift_guard().
constexpr size_t general = 2 |
Definition at line 14 of file cache.cc.
Referenced by output_features(), and read_cached_features().
constexpr size_t int_size = 11 |
Definition at line 11 of file cache.cc.
Referenced by output_features().
constexpr size_t neg_1 = 1 |
Definition at line 13 of file cache.cc.
Referenced by output_features(), and read_cached_features().