Vowpal Wabbit
Loading...
Searching...
No Matches
Classes | Typedefs | Functions | Variables
VW::details Namespace Reference

Classes

class  audit_features_iterator
 
class  cb_to_cs
 
class  cb_to_cs_adf_dr
 
class  cb_to_cs_adf_mtr
 
class  cb_to_cs_per_model_state
 
class  countable_discrete_base
 
class  default_factory
 
class  dense_iterator
 
class  dictionary_info
 
class  dsjson_metrics
 
class  Duals
 
class  extent_interaction_expansion_stack_item
 
class  feature_gen_data
 
class  feature_tweaks_config
 
class  features_iterator
 
class  g_tilde
 
class  generate_interactions_object_cache
 
class  incremental_f_sum
 
class  index_sequence
 
class  initial_weights_config
 
class  input_options
 
class  input_parser
 
union  int_float_convert
 
class  invert_hash_info
 
class  loss_config
 
class  make_index_sequence
 
class  make_index_sequence< 0, Integers... >
 
class  multipredict_info
 
class  node_socks
 
class  ns_extent_iterator
 
struct  null_mutex
 
class  object_pool_impl
 
class  output_config
 
class  output_model_config
 
class  output_runtime
 
class  parser_runtime
 
class  passes_config
 
class  reduction_state
 
class  runtime_config
 
class  runtime_state
 
class  scope_exit_caller
 
class  sparse_iterator
 
class  swap_guard_impl
 
class  swap_guard_impl_rvalue
 
class  trace_message_wrapper
 
class  update_rule_config
 

Typedefs

using weight_map = std::unordered_map< uint64_t, std::shared_ptr< VW::weight > >
 
using ScoredDual = std::pair< double, VW::details::Duals >
 
using feature_dict = std::unordered_map< std::string, std::unique_ptr< VW::features > >
 
using features_range_t = std::pair< features::const_audit_iterator, features::const_audit_iterator >
 
using label_feature_map = std::unordered_map< size_t, features >
 

Functions

template<class T , void(*)(T &, const T &) f>
void addbufs (T *buf1, const T *buf2, const size_t n)
 
constexpr uint32_t rotl32 (uint32_t x, int8_t r) noexcept
 
VW_STD14_CONSTEXPR uint32_t fmix (uint32_t h) noexcept
 
VW_STD14_CONSTEXPR uint32_t get_block (const char *p, size_t i)
 
VW_STD14_CONSTEXPR uint32_t murmurhash_x86_32 (const char *data, size_t len, uint32_t seed)
 
float merand48 (uint64_t &initial)
 
float merand48_noadvance (uint64_t v)
 
float merand48_boxmuller (uint64_t &index)
 
void accumulate (VW::workspace &all, parameters &weights, size_t o)
 
float accumulate_scalar (VW::workspace &all, float local_sum)
 
void accumulate_weighted_avg (VW::workspace &all, parameters &weights)
 
void accumulate_avg (VW::workspace &all, parameters &weights, size_t o)
 
template<class T >
void do_weighting (size_t normalized_idx, uint64_t length, const float *local_weights, T &weights)
 
void print_action_score (VW::io::writer *f, const VW::v_array< action_score > &a_s, const VW::v_array< char > &, VW::io::logger &logger)
 
void print_update_cb (VW::workspace &all, bool is_test, const VW::example &ec, const VW::multi_ex *ec_seq, bool action_scores, const VW::cb_class *known_cost)
 
template<typename T >
correctedExp (T exponent)
 
void output_cs_example (VW::workspace &all, const VW::example &ec)
 
void output_cs_example (VW::workspace &all, const VW::example &ec, const cs_label &cs_label, uint32_t multiclass_prediction)
 
void finish_cs_example (VW::workspace &all, VW::example &ec)
 
template<class T >
void finish_cs_example (VW::workspace &all, T &, VW::example &ec)
 
void print_cs_update (VW::workspace &all, bool is_test, const VW::example &ec, const VW::multi_ex *ec_seq, bool multilabel, uint32_t prediction)
 
void print_cs_update_multiclass (VW::workspace &all, bool is_test, size_t num_features, uint32_t prediction)
 
void print_cs_update_action_scores (VW::workspace &all, bool is_test, size_t num_features, const VW::action_scores &action_scores)
 
void update_stats_cs_label (const VW::workspace &all, shared_data &sd, const VW::example &ec, VW::io::logger &logger)
 
void output_example_prediction_cs_label (VW::workspace &all, const VW::example &ec, VW::io::logger &logger)
 
void print_update_cs_label (VW::workspace &all, shared_data &sd, const VW::example &ec, VW::io::logger &logger)
 
template<typename UnusedDataT >
void update_stats_cs_label (const VW::workspace &all, shared_data &sd, const UnusedDataT &, const VW::example &ec, VW::io::logger &logger)
 
template<typename UnusedDataT >
void output_example_prediction_cs_label (VW::workspace &all, const UnusedDataT &, const VW::example &ec, VW::io::logger &logger)
 
template<typename UnusedDataT >
void print_update_cs_label (VW::workspace &all, shared_data &sd, const UnusedDataT &, const VW::example &ec, VW::io::logger &logger)
 
void binary_print_result_by_ref (VW::io::writer *f, float res, float weight, const VW::v_array< char > &tag, VW::io::logger &logger)
 
void get_prediction (VW::io::reader *f, float &res, float &weight)
 
void add_passthrough_feature_magic (example &ec, uint64_t magic, uint64_t i, float x)
 
void clean_example (VW::workspace &all, example &ec)
 
void append_example_namespace (VW::example &ec, VW::namespace_index ns, const features &fs)
 
void truncate_example_namespace (VW::example &ec, VW::namespace_index ns, const features &fs)
 
void append_example_namespaces_from_example (VW::example &target, const VW::example &source)
 
void truncate_example_namespaces_from_example (VW::example &target, const VW::example &source)
 
constexpr float constexpr_int_pow10 (uint8_t exponent)
 
constexpr float constexpr_negative_int_pow10 (uint8_t exponent)
 
constexpr float constexpr_negative_int_pow10_with_offset (uint8_t exponent, uint8_t offset)
 
template<std::size_t ArrayLength, std::size_t... IntegerSequence>
constexpr std::array< float, ArrayLength > gen_negative_pow10s (index_sequence< IntegerSequence... >)
 
template<std::size_t ArrayLength, std::size_t... IntegerSequence>
constexpr std::array< float, ArrayLength > gen_positive_pow10s (index_sequence< IntegerSequence... >)
 
std::vector< std::pair< bool, uint64_t > > flatten_namespace_extents (const std::vector< namespace_extent > &extents, size_t overall_feature_space_size)
 
std::vector< namespace_extentunflatten_namespace_extents (const std::vector< std::pair< bool, uint64_t > > &extents)
 
template<class DataT >
void dummy_func (DataT &, const VW::audit_strings *)
 
void vec_add (float &p, float fx, float fw)
 
float safe_probability (float prob, VW::io::logger &logger)
 
void gen_cs_example_ips (cb_to_cs &c, const VW::cb_label &ld, VW::cs_label &cs_ld, VW::io::logger &logger, float clip_p=0.f)
 
template<bool is_learn>
void gen_cs_example_dm (cb_to_cs &c, VW::example &ec, const VW::cb_label &ld, VW::cs_label &cs_ld)
 
template<bool is_learn>
void gen_cs_label (cb_to_cs &c, VW::example &ec, VW::cs_label &cs_ld, uint32_t action, float clip_p=0.f)
 
template<bool is_learn>
void gen_cs_example_dr (cb_to_cs &c, VW::example &ec, const VW::cb_label &ld, VW::cs_label &cs_ld, float=0.f)
 
template<bool is_learn>
void gen_cs_example (cb_to_cs &c, VW::example &ec, const VW::cb_label &ld, VW::cs_label &cs_ld, VW::io::logger &logger)
 
void gen_cs_test_example (const VW::multi_ex &examples, VW::cs_label &cs_labels)
 
void gen_cs_example_ips (const VW::multi_ex &examples, VW::cs_label &cs_labels, VW::io::logger &logger, float clip_p=0.f)
 
void gen_cs_example_dm (const VW::multi_ex &examples, VW::cs_label &cs_labels)
 
void gen_cs_example_mtr (cb_to_cs_adf_mtr &c, VW::multi_ex &ec_seq, VW::cs_label &cs_labels, uint64_t offset_index)
 
void gen_cs_example_sm (VW::multi_ex &examples, uint32_t chosen_action, float sign_offset, const VW::action_scores &action_vals, VW::cs_label &cs_labels)
 
template<bool is_learn>
void gen_cs_example_dr (cb_to_cs_adf_dr &c, VW::multi_ex &examples, VW::cs_label &cs_labels, float clip_p=0.f)
 
void cs_prep_labels (VW::multi_ex &examples, std::vector< VW::cb_label > &cb_labels, VW::cs_label &cs_labels, std::vector< VW::cs_label > &prepped_cs_labels, uint64_t offset)
 
template<bool is_learn>
void cs_ldf_learn_or_predict (VW::LEARNER::learner &base, VW::multi_ex &examples, std::vector< VW::cb_label > &cb_labels, VW::cs_label &cs_labels, std::vector< VW::cs_label > &prepped_cs_labels, bool predict_first, uint64_t offset, size_t id=0)
 
void print_result_by_ref (VW::io::writer *f, float res, float weight, const VW::v_array< char > &tag, VW::io::logger &logger)
 
void compile_limits (std::vector< std::string > limits, std::array< uint32_t, VW::NUM_NAMESPACES > &dest, bool quiet, VW::io::logger &logger)
 
VW_STD14_CONSTEXPR uint32_t hashall (const char *s, size_t len, uint32_t h)
 
VW_STD14_CONSTEXPR uint32_t hashstring (const char *s, size_t len, uint32_t h)
 
template<typename T >
std::vector< T > indices_to_values_one_based (const std::vector< size_t > &indices, const std::set< T > &values)
 
template<typename T >
std::vector< T > indices_to_values_ignore_last_index (const std::vector< size_t > &indices, const std::set< T > &values)
 
template<typename T >
bool must_be_left_sorted (const std::vector< T > &oi)
 
template<typename T >
void sort_and_filter_duplicate_interactions (std::vector< std::vector< T > > &vec, bool filter_duplicates, size_t &removed_cnt, size_t &sorted_cnt)
 
template<typename T >
std::vector< std::vector< T > > generate_namespace_combinations_with_repetition (const std::set< T > &namespaces, size_t num_to_pick)
 
template<typename T >
std::vector< std::vector< T > > generate_namespace_permutations_with_repetition (const std::set< T > &namespaces, size_t num_to_pick)
 
std::vector< std::vector< VW::namespace_index > > expand_quadratics_wildcard_interactions (bool leave_duplicate_interactions, const std::set< VW::namespace_index > &new_example_indices)
 
bool sort_interactions_comparator (const std::vector< VW::namespace_index > &a, const std::vector< VW::namespace_index > &b)
 
template<generate_func_t< VW::namespace_index > generate_func, bool leave_duplicate_interactions>
std::vector< std::vector< VW::namespace_index > > compile_interaction (const std::vector< VW::namespace_index > &interaction, const std::set< VW::namespace_index > &indices)
 
template<generate_func_t< VW::extent_term > generate_func, bool leave_duplicate_interactions>
std::vector< std::vector< VW::extent_term > > compile_extent_interaction (const std::vector< VW::extent_term > &interaction, const std::set< VW::extent_term > &_all_seen_extents)
 
template<generate_func_t< VW::namespace_index > generate_func, bool leave_duplicate_interactions>
std::vector< std::vector< VW::namespace_index > > compile_interactions (const std::vector< std::vector< VW::namespace_index > > &interactions, const std::set< VW::namespace_index > &indices)
 
template<generate_func_t< VW::extent_term > generate_func, bool leave_duplicate_interactions>
std::vector< std::vector< VW::extent_term > > compile_extent_interactions (const std::vector< std::vector< VW::extent_term > > &interactions, const std::set< VW::extent_term > &indices)
 
template<class DataT , void(*)(DataT &, const float, float &) FuncT, class WeightsT >
void call_func_t (DataT &dat, WeightsT &weights, const float ft_value, const uint64_t ft_idx)
 
template<class DataT , void(*)(DataT &, const float, float) FuncT, class WeightsT >
void call_func_t (DataT &dat, const WeightsT &weights, const float ft_value, const uint64_t ft_idx)
 
bool term_is_empty (VW::namespace_index term, const std::array< VW::features, VW::NUM_NAMESPACES > &feature_groups)
 
bool has_empty_interaction_quadratic (const std::array< VW::features, VW::NUM_NAMESPACES > &feature_groups, const std::vector< VW::namespace_index > &namespace_indexes)
 
bool has_empty_interaction_cubic (const std::array< VW::features, VW::NUM_NAMESPACES > &feature_groups, const std::vector< VW::namespace_index > &namespace_indexes)
 
bool has_empty_interaction (const std::array< VW::features, VW::NUM_NAMESPACES > &feature_groups, const std::vector< VW::namespace_index > &namespace_indexes)
 
bool has_empty_interaction (const std::array< VW::features, VW::NUM_NAMESPACES > &feature_groups, const std::vector< VW::extent_term > &namespace_indexes)
 
constexpr float interaction_value (float value1, float value2)
 
std::tuple< VW::details::features_range_t, VW::details::features_range_tgenerate_quadratic_char_combination (const std::array< VW::features, VW::NUM_NAMESPACES > &feature_groups, VW::namespace_index ns_idx1, VW::namespace_index ns_idx2)
 
template<typename DispatchCombinationFuncT >
void generate_generic_extent_combination_iterative (const std::array< VW::features, VW::NUM_NAMESPACES > &feature_groups, const std::vector< VW::extent_term > &terms, const DispatchCombinationFuncT &dispatch_combination_func, std::stack< VW::details::extent_interaction_expansion_stack_item > &in_process_frames, VW::moved_object_pool< VW::details::extent_interaction_expansion_stack_item > &frame_pool)
 
std::tuple< VW::details::features_range_t, VW::details::features_range_t, VW::details::features_range_tgenerate_cubic_char_combination (const std::array< VW::features, VW::NUM_NAMESPACES > &feature_groups, VW::namespace_index ns_idx1, VW::namespace_index ns_idx2, VW::namespace_index ns_idx3)
 
std::vector< VW::details::features_range_tgenerate_generic_char_combination (const std::array< VW::features, VW::NUM_NAMESPACES > &feature_groups, const std::vector< VW::namespace_index > &terms)
 
template<class DataT , class WeightOrIndexT , void(*)(DataT &, float, WeightOrIndexT) FuncT, bool audit, void(*)(DataT &, const VW::audit_strings *) audit_func, class WeightsT >
void inner_kernel (DataT &dat, VW::features::const_audit_iterator &begin, VW::features::const_audit_iterator &end, const uint64_t offset, WeightsT &weights, VW::feature_value ft_value, VW::feature_index halfhash)
 
template<bool Audit, typename KernelFuncT , typename AuditFuncT >
size_t process_quadratic_interaction (const std::tuple< VW::details::features_range_t, VW::details::features_range_t > &range, bool permutations, const KernelFuncT &kernel_func, const AuditFuncT &audit_func)
 
template<bool Audit, typename KernelFuncT , typename AuditFuncT >
size_t process_cubic_interaction (const std::tuple< VW::details::features_range_t, VW::details::features_range_t, VW::details::features_range_t > &range, bool permutations, const KernelFuncT &kernel_func, const AuditFuncT &audit_func)
 
template<bool Audit, typename KernelFuncT , typename AuditFuncT >
size_t process_generic_interaction (const std::vector< VW::details::features_range_t > &range, bool permutations, const KernelFuncT &kernel_func, const AuditFuncT &audit_func, std::vector< VW::details::feature_gen_data > &state_data)
 
size_t bin_read (io_buf &i, char *data, size_t len)
 
size_t bin_write (io_buf &o, const char *data, uint32_t len)
 
size_t bin_text_write (io_buf &io, char *data, size_t len, std::stringstream &msg, bool text)
 
size_t bin_text_read_write (io_buf &io, char *data, size_t len, bool read, std::stringstream &msg, bool text)
 
size_t bin_text_write_fixed (io_buf &io, char *data, size_t len, std::stringstream &msg, bool text)
 
size_t bin_text_read_write_fixed (io_buf &io, char *data, size_t len, bool read, std::stringstream &msg, bool text)
 
size_t bin_text_read_write_fixed_validated (io_buf &io, char *data, size_t len, bool read, std::stringstream &msg, bool text)
 
void append_example_namespace_from_memory (const label_feature_map &lfm, VW::example &ec, size_t lab)
 
void truncate_example_namespace_from_memory (const label_feature_map &lfm, VW::example &ec, size_t lab)
 
template<class T >
T * calloc_or_throw (size_t nmemb)
 
template<class T >
T & calloc_or_throw ()
 
template<class T >
T * calloc_mergable_or_throw (size_t nmemb)
 
void print_multiclass_update_with_probability (VW::workspace &all, const VW::example &ec, uint32_t prediction)
 
void print_multiclass_update_with_score (VW::workspace &all, const VW::example &ec, uint32_t prediction)
 
void finish_multiclass_example (VW::workspace &all, VW::example &ec, bool update_loss)
 
template<class T >
void finish_multiclass_example (VW::workspace &all, T &, VW::example &ec)
 
template<class T >
void finish_multiclass_example_without_loss (VW::workspace &all, T &, VW::example &ec)
 
void update_stats_multiclass_label (const VW::workspace &all, shared_data &sd, const VW::example &ec, VW::io::logger &logger)
 
void output_example_prediction_multiclass_label (VW::workspace &all, const VW::example &ec, VW::io::logger &logger)
 
void print_update_multiclass_label (VW::workspace &all, shared_data &sd, const VW::example &ec, VW::io::logger &logger)
 
template<typename UnusedDataT >
void update_stats_multiclass_label (const VW::workspace &all, shared_data &sd, const UnusedDataT &, const VW::example &ec, VW::io::logger &logger)
 
template<typename UnusedDataT >
void output_example_prediction_multiclass_label (VW::workspace &all, const UnusedDataT &, const VW::example &ec, VW::io::logger &logger)
 
template<typename UnusedDataT >
void print_update_multiclass_label (VW::workspace &all, shared_data &sd, const UnusedDataT &, const VW::example &ec, VW::io::logger &logger)
 
void update_stats_multilabel (const VW::workspace &all, const VW::example &ec)
 
void output_example_prediction_multilabel (VW::workspace &all, const VW::example &ec)
 
void print_update_multilabel (VW::workspace &all, const VW::example &ec)
 
std::unique_ptr< VW::io::socketopen_vw_binary_socket (const std::string &host_and_optional_port, VW::io::logger &logger)
 
std::unique_ptr< VW::io::socketopen_vw_binary_socket (const std::string &host, uint16_t port, VW::io::logger &logger)
 
void return_no_label_example (VW::workspace &all, void *, VW::example &ec)
 
void print_no_label_update (VW::workspace &all, VW::example &ec)
 
void output_and_account_no_label_example (VW::workspace &all, VW::example &ec)
 
void merge_options_from_header_strings (const std::vector< std::string > &strings, bool skip_interactions, VW::config::options_i &options, bool &is_ccb_input_model)
 
std::vector< extent_termparse_full_name_interactions (VW::workspace &all, VW::string_view str)
 
std::tuple< std::string, std::string > extract_ignored_feature (VW::string_view namespace_feature)
 Extract namespace, feature name, and optional feature value from ignored feature string. More...
 
std::unique_ptr< VW::workspaceparse_args (std::unique_ptr< config::options_i, options_deleter_type > options, VW::trace_message_t trace_listener, void *trace_context, VW::io::logger *custom_logger)
 
config::options_iload_header_merge_options (config::options_i &options, VW::workspace &all, io_buf &model, bool &interactions_settings_duplicated)
 
void parse_modules (config::options_i &options, VW::workspace &all, bool interactions_settings_duplicated, std::vector< std::string > &dictionary_namespaces)
 
void instantiate_learner (VW::workspace &all, std::unique_ptr< VW::setup_base_i > learner_builder)
 
void parse_sources (config::options_i &options, VW::workspace &all, io_buf &model, bool skip_model_load)
 
void print_enabled_learners (VW::workspace &all, std::vector< std::string > &enabled_learners)
 
void parse_dictionary_argument (VW::workspace &all, const std::string &str)
 
template<typename DispatchFuncT >
void parse_dispatch (VW::workspace &all, DispatchFuncT &dispatch)
 
std::vector< std::string > escaped_tokenize (char delim, VW::string_view s, bool allow_empty=false)
 
float parse_float (const char *p, size_t &end_idx, const char *end_line=nullptr)
 
float float_of_string (VW::string_view s, VW::io::logger &logger)
 
int int_of_string (VW::string_view s, char *&end, VW::io::logger &logger)
 
int int_of_string (VW::string_view s, VW::io::logger &logger)
 
void read_regressor_file (VW::workspace &all, const std::vector< std::string > &files, VW::io_buf &io_temp)
 
void finalize_regressor (VW::workspace &all, const std::string &reg_name)
 
void initialize_regressor (VW::workspace &all)
 
void save_predictor (VW::workspace &all, const std::string &reg_name, size_t current_pass)
 
void save_load_header (VW::workspace &all, VW::io_buf &model_file, bool read, bool text, std::string &file_options, VW::config::options_i &options)
 
void parse_mask_regressor_args (VW::workspace &all, const std::string &feature_mask, std::vector< std::string > initial_regressors)
 
void dump_regressor (VW::workspace &all, io_buf &buf, bool as_text)
 
void dump_regressor (VW::workspace &all, const std::string &reg_name, bool as_text)
 
void enable_sources (VW::workspace &all, bool quiet, size_t passes, const VW::details::input_options &input_options)
 
void lock_done (parser &p)
 
void set_done (VW::workspace &all)
 
void reset_source (VW::workspace &all, size_t numbits)
 
void free_parser (VW::workspace &all)
 
void global_print_newline (const std::vector< std::unique_ptr< VW::io::writer > > &final_prediction_sink, VW::io::logger &logger)
 
float finalize_prediction (VW::shared_data &sd, VW::io::logger &logger, float ret)
 
void print_features (VW::workspace &all, VW::example &ec)
 
void print_audit_features (VW::workspace &, VW::example &ec)
 
void save_load_regressor_gd (VW::workspace &all, VW::io_buf &model_file, bool read, bool text)
 
void save_load_online_state_gd (VW::workspace &all, VW::io_buf &model_file, bool read, bool text, std::vector< VW::reductions::details::gd_per_model_state > &pms, VW::reductions::gd *g=nullptr, uint32_t ftrl_size=0)
 
template<class T >
void vec_add_multipredict (multipredict_info< T > &mp, const float fx, uint64_t fi)
 
void print_scalars (VW::io::writer *f, const VW::v_array< float > &scalars, const VW::v_array< char > &tag, VW::io::logger &logger)
 
void return_simple_example (VW::workspace &all, void *, VW::example &ec)
 
bool summarize_holdout_set (VW::workspace &all, size_t &no_win_counter)
 
void print_update (VW::workspace &all, const VW::example &ec)
 
void output_and_account_example (VW::workspace &all, const VW::example &ec)
 
void update_stats_simple_label (const VW::workspace &all, shared_data &sd, const VW::example &ec, VW::io::logger &logger)
 
void output_example_prediction_simple_label (VW::workspace &all, const VW::example &ec, VW::io::logger &logger)
 
void print_update_simple_label (VW::workspace &all, shared_data &sd, const VW::example &ec, VW::io::logger &logger)
 
template<typename UnusedDataT >
void update_stats_simple_label (const VW::workspace &all, shared_data &sd, const UnusedDataT &, const VW::example &ec, VW::io::logger &logger)
 
template<typename UnusedDataT >
void output_example_prediction_simple_label (VW::workspace &all, const UnusedDataT &, const VW::example &ec, VW::io::logger &logger)
 
template<typename UnusedDataT >
void print_update_simple_label (VW::workspace &all, shared_data &sd, const UnusedDataT &, const VW::example &ec, VW::io::logger &logger)
 
template<class T , void(*)(T &, const T &) f>
void all_reduce (VW::workspace &all, T *buffer, const size_t n)
 

Variables

constexpr size_t AR_BUF_SIZE = 1 << 16
 
constexpr uint64_t CONSTANT_A = 0xeece66d5deece66dULL
 
constexpr uint64_t CONSTANT_C = 2147483647
 
constexpr int BIAS = 127 << 23
 
constexpr int QUADRATIC_CONSTANT = 27942141
 
constexpr int CUBIC_CONSTANT = 21791
 
constexpr int CUBIC_CONSTANT2 = 37663
 
constexpr int AFFIX_CONSTANT = 13903957
 
constexpr uint64_t CONSTANT = 11650396
 
constexpr float PROBABILITY_TOLERANCE = 1e-5f
 
constexpr uint32_t FNV_PRIME = 16777619
 
constexpr unsigned char DEFAULT_NAMESPACE = 32
 
constexpr unsigned char WILDCARD_NAMESPACE = 58
 
constexpr unsigned char WAP_LDF_NAMESPACE = 126
 
constexpr unsigned char HISTORY_NAMESPACE = 127
 
constexpr unsigned char CONSTANT_NAMESPACE = 128
 
constexpr unsigned char NN_OUTPUT_NAMESPACE = 129
 
constexpr unsigned char AUTOLINK_NAMESPACE = 130
 
constexpr unsigned char NEIGHBOR_NAMESPACE
 
constexpr unsigned char AFFIX_NAMESPACE = 132
 
constexpr unsigned char SPELLING_NAMESPACE = 133
 
constexpr unsigned char CONDITIONING_NAMESPACE = 134
 
constexpr unsigned char DICTIONARY_NAMESPACE = 135
 
constexpr unsigned char NODE_ID_NAMESPACE = 136
 
constexpr unsigned char BASELINE_ENABLED_MESSAGE_NAMESPACE = 137
 
constexpr unsigned char CCB_SLOT_NAMESPACE = 139
 
constexpr unsigned char CCB_ID_NAMESPACE = 140
 
constexpr unsigned char IGL_FEEDBACK_NAMESPACE = 141
 
constexpr const char * CCB_LABEL = "ccb"
 
constexpr const char * SLATES_LABEL = "slates"
 
constexpr const char * SHARED_TYPE = "shared"
 
constexpr const char * ACTION_TYPE = "action"
 
constexpr const char * SLOT_TYPE = "slot"
 
constexpr const char * CA_LABEL = "ca"
 
constexpr const char * PDF = "pdf"
 
constexpr const char * CHOSEN_ACTION = "chosen_action"
 
constexpr const char * GRAPH_FEEDBACK_TYPE = "graph"
 
constexpr uint64_t UINT64_ONE = 1ULL
 
constexpr float CS_DEFAULT_ALPHA = 0.05f
 
constexpr double CS_ROBUST_DEFAULT_ALPHA = 0.05f
 
constexpr float BASELINE_DEFAULT_TAU = 0.999f
 
constexpr float CRESSEREAD_DEFAULT_TAU = 1.0f
 
constexpr float DEFAULT_ALPHA = 0.05f
 
constexpr float POW10_BASE = 10.f
 
const constexpr uint8_t VALUES_BELOW_ZERO = FLT_MIN_10_EXP * -1
 
const constexpr uint8_t VALUES_ABOVE_AND_INCLUDING_ZERO = FLT_MAX_10_EXP + 1
 
const constexpr uint8_t VALUES_ABOVE_ZERO = FLT_MAX_10_EXP
 
constexpr unsigned char INTERACTION_NS_START = ' '
 
constexpr unsigned char INTERACTION_NS_END = '~'
 

Typedef Documentation

◆ feature_dict

using VW::details::feature_dict = typedef std::unordered_map<std::string, std::unique_ptr<VW::features> >

◆ features_range_t

◆ label_feature_map

using VW::details::label_feature_map = typedef std::unordered_map<size_t, features>

◆ ScoredDual

using VW::details::ScoredDual = typedef std::pair<double, VW::details::Duals>

◆ weight_map

using VW::details::weight_map = typedef std::unordered_map<uint64_t, std::shared_ptr<VW::weight> >

Function Documentation

◆ accumulate()

void VW::details::accumulate ( VW::workspace all,
parameters weights,
size_t  o 
)

◆ accumulate_avg()

void VW::details::accumulate_avg ( VW::workspace all,
parameters weights,
size_t  o 
)

◆ accumulate_scalar()

float VW::details::accumulate_scalar ( VW::workspace all,
float  local_sum 
)

◆ accumulate_weighted_avg()

void VW::details::accumulate_weighted_avg ( VW::workspace all,
parameters weights 
)

◆ add_passthrough_feature_magic()

void VW::details::add_passthrough_feature_magic ( example ec,
uint64_t  magic,
uint64_t  i,
float  x 
)
inline

◆ addbufs()

template<class T , void(*)(T &, const T &) f>
void VW::details::addbufs ( T *  buf1,
const T *  buf2,
const size_t  n 
)

◆ all_reduce()

template<class T , void(*)(T &, const T &) f>
void VW::details::all_reduce ( VW::workspace all,
T *  buffer,
const size_t  n 
)

◆ append_example_namespace()

void VW::details::append_example_namespace ( VW::example ec,
VW::namespace_index  ns,
const features fs 
)

◆ append_example_namespace_from_memory()

void VW::details::append_example_namespace_from_memory ( const label_feature_map lfm,
VW::example ec,
size_t  lab 
)

◆ append_example_namespaces_from_example()

void VW::details::append_example_namespaces_from_example ( VW::example target,
const VW::example source 
)

◆ bin_read()

size_t VW::details::bin_read ( io_buf i,
char *  data,
size_t  len 
)
inline

◆ bin_text_read_write()

size_t VW::details::bin_text_read_write ( io_buf io,
char *  data,
size_t  len,
bool  read,
std::stringstream &  msg,
bool  text 
)
inline

◆ bin_text_read_write_fixed()

size_t VW::details::bin_text_read_write_fixed ( io_buf io,
char *  data,
size_t  len,
bool  read,
std::stringstream &  msg,
bool  text 
)
inline

◆ bin_text_read_write_fixed_validated()

size_t VW::details::bin_text_read_write_fixed_validated ( io_buf io,
char *  data,
size_t  len,
bool  read,
std::stringstream &  msg,
bool  text 
)
inline

◆ bin_text_write()

size_t VW::details::bin_text_write ( io_buf io,
char *  data,
size_t  len,
std::stringstream &  msg,
bool  text 
)
inline

◆ bin_text_write_fixed()

size_t VW::details::bin_text_write_fixed ( io_buf io,
char *  data,
size_t  len,
std::stringstream &  msg,
bool  text 
)
inline

◆ bin_write()

size_t VW::details::bin_write ( io_buf o,
const char *  data,
uint32_t  len 
)
inline

◆ binary_print_result_by_ref()

void VW::details::binary_print_result_by_ref ( VW::io::writer f,
float  res,
float  weight,
const VW::v_array< char > &  tag,
VW::io::logger logger 
)

◆ call_func_t() [1/2]

template<class DataT , void(*)(DataT &, const float, float) FuncT, class WeightsT >
void VW::details::call_func_t ( DataT &  dat,
const WeightsT &  weights,
const float  ft_value,
const uint64_t  ft_idx 
)
inline

◆ call_func_t() [2/2]

template<class DataT , void(*)(DataT &, const float, float &) FuncT, class WeightsT >
void VW::details::call_func_t ( DataT &  dat,
WeightsT &  weights,
const float  ft_value,
const uint64_t  ft_idx 
)
inline

◆ calloc_mergable_or_throw()

template<class T >
T * VW::details::calloc_mergable_or_throw ( size_t  nmemb)

◆ calloc_or_throw() [1/2]

template<class T >
T & VW::details::calloc_or_throw ( )

◆ calloc_or_throw() [2/2]

template<class T >
T * VW::details::calloc_or_throw ( size_t  nmemb)

◆ clean_example()

void VW::details::clean_example ( VW::workspace all,
example ec 
)

◆ compile_extent_interaction()

template<generate_func_t< VW::extent_term > generate_func, bool leave_duplicate_interactions>
std::vector< std::vector< VW::extent_term > > VW::details::compile_extent_interaction ( const std::vector< VW::extent_term > &  interaction,
const std::set< VW::extent_term > &  _all_seen_extents 
)

◆ compile_extent_interactions()

template<generate_func_t< VW::extent_term > generate_func, bool leave_duplicate_interactions>
std::vector< std::vector< VW::extent_term > > VW::details::compile_extent_interactions ( const std::vector< std::vector< VW::extent_term > > &  interactions,
const std::set< VW::extent_term > &  indices 
)

◆ compile_interaction()

template<generate_func_t< VW::namespace_index > generate_func, bool leave_duplicate_interactions>
std::vector< std::vector< VW::namespace_index > > VW::details::compile_interaction ( const std::vector< VW::namespace_index > &  interaction,
const std::set< VW::namespace_index > &  indices 
)

◆ compile_interactions()

template<generate_func_t< VW::namespace_index > generate_func, bool leave_duplicate_interactions>
std::vector< std::vector< VW::namespace_index > > VW::details::compile_interactions ( const std::vector< std::vector< VW::namespace_index > > &  interactions,
const std::set< VW::namespace_index > &  indices 
)

◆ compile_limits()

void VW::details::compile_limits ( std::vector< std::string >  limits,
std::array< uint32_t, VW::NUM_NAMESPACES > &  dest,
bool  quiet,
VW::io::logger logger 
)

◆ constexpr_int_pow10()

constexpr float VW::details::constexpr_int_pow10 ( uint8_t  exponent)
constexpr

◆ constexpr_negative_int_pow10()

constexpr float VW::details::constexpr_negative_int_pow10 ( uint8_t  exponent)
constexpr

◆ constexpr_negative_int_pow10_with_offset()

constexpr float VW::details::constexpr_negative_int_pow10_with_offset ( uint8_t  exponent,
uint8_t  offset 
)
constexpr

◆ correctedExp()

template<typename T >
T VW::details::correctedExp ( exponent)

◆ cs_ldf_learn_or_predict()

template<bool is_learn>
void VW::details::cs_ldf_learn_or_predict ( VW::LEARNER::learner base,
VW::multi_ex examples,
std::vector< VW::cb_label > &  cb_labels,
VW::cs_label cs_labels,
std::vector< VW::cs_label > &  prepped_cs_labels,
bool  predict_first,
uint64_t  offset,
size_t  id = 0 
)

◆ cs_prep_labels()

void VW::details::cs_prep_labels ( VW::multi_ex examples,
std::vector< VW::cb_label > &  cb_labels,
VW::cs_label cs_labels,
std::vector< VW::cs_label > &  prepped_cs_labels,
uint64_t  offset 
)

◆ do_weighting()

template<class T >
void VW::details::do_weighting ( size_t  normalized_idx,
uint64_t  length,
const float *  local_weights,
T &  weights 
)

◆ dummy_func()

template<class DataT >
void VW::details::dummy_func ( DataT &  ,
const VW::audit_strings  
)
inline

◆ dump_regressor() [1/2]

void VW::details::dump_regressor ( VW::workspace all,
const std::string &  reg_name,
bool  as_text 
)

◆ dump_regressor() [2/2]

void VW::details::dump_regressor ( VW::workspace all,
io_buf buf,
bool  as_text 
)

◆ enable_sources()

void VW::details::enable_sources ( VW::workspace all,
bool  quiet,
size_t  passes,
const VW::details::input_options input_options 
)

◆ escaped_tokenize()

std::vector< std::string > VW::details::escaped_tokenize ( char  delim,
VW::string_view  s,
bool  allow_empty = false 
)

◆ expand_quadratics_wildcard_interactions()

std::vector< std::vector< VW::namespace_index > > VW::details::expand_quadratics_wildcard_interactions ( bool  leave_duplicate_interactions,
const std::set< VW::namespace_index > &  new_example_indices 
)

◆ extract_ignored_feature()

std::tuple< std::string, std::string > VW::details::extract_ignored_feature ( VW::string_view  namespace_feature)

Extract namespace, feature name, and optional feature value from ignored feature string.

Parameters
namespace_featurenamespace|feature:feature_value. Feature value is optional and if it is supplied chain_hash is applied
Returns
std::tuple<std::string, std::string> (namespace, feature)

◆ finalize_prediction()

float VW::details::finalize_prediction ( VW::shared_data sd,
VW::io::logger logger,
float  ret 
)

◆ finalize_regressor()

void VW::details::finalize_regressor ( VW::workspace all,
const std::string &  reg_name 
)

◆ finish_cs_example() [1/2]

template<class T >
void VW::details::finish_cs_example ( VW::workspace all,
T &  ,
VW::example ec 
)

◆ finish_cs_example() [2/2]

void VW::details::finish_cs_example ( VW::workspace all,
VW::example ec 
)

◆ finish_multiclass_example() [1/2]

template<class T >
void VW::details::finish_multiclass_example ( VW::workspace all,
T &  ,
VW::example ec 
)

◆ finish_multiclass_example() [2/2]

void VW::details::finish_multiclass_example ( VW::workspace all,
VW::example ec,
bool  update_loss 
)

◆ finish_multiclass_example_without_loss()

template<class T >
void VW::details::finish_multiclass_example_without_loss ( VW::workspace all,
T &  ,
VW::example ec 
)

◆ flatten_namespace_extents()

std::vector< std::pair< bool, uint64_t > > VW::details::flatten_namespace_extents ( const std::vector< namespace_extent > &  extents,
size_t  overall_feature_space_size 
)

◆ float_of_string()

float VW::details::float_of_string ( VW::string_view  s,
VW::io::logger logger 
)
inline

◆ fmix()

VW_STD14_CONSTEXPR uint32_t VW::details::fmix ( uint32_t  h)
inlinenoexcept

◆ free_parser()

void VW::details::free_parser ( VW::workspace all)

◆ gen_cs_example()

template<bool is_learn>
void VW::details::gen_cs_example ( cb_to_cs c,
VW::example ec,
const VW::cb_label ld,
VW::cs_label cs_ld,
VW::io::logger logger 
)

◆ gen_cs_example_dm() [1/2]

template<bool is_learn>
void VW::details::gen_cs_example_dm ( cb_to_cs c,
VW::example ec,
const VW::cb_label ld,
VW::cs_label cs_ld 
)

◆ gen_cs_example_dm() [2/2]

void VW::details::gen_cs_example_dm ( const VW::multi_ex examples,
VW::cs_label cs_labels 
)

◆ gen_cs_example_dr() [1/2]

template<bool is_learn>
void VW::details::gen_cs_example_dr ( cb_to_cs c,
VW::example ec,
const VW::cb_label ld,
VW::cs_label cs_ld,
float  = 0.f 
)

◆ gen_cs_example_dr() [2/2]

template<bool is_learn>
void VW::details::gen_cs_example_dr ( cb_to_cs_adf_dr c,
VW::multi_ex examples,
VW::cs_label cs_labels,
float  clip_p = 0.f 
)

◆ gen_cs_example_ips() [1/2]

void VW::details::gen_cs_example_ips ( cb_to_cs c,
const VW::cb_label ld,
VW::cs_label cs_ld,
VW::io::logger logger,
float  clip_p = 0.f 
)

◆ gen_cs_example_ips() [2/2]

void VW::details::gen_cs_example_ips ( const VW::multi_ex examples,
VW::cs_label cs_labels,
VW::io::logger logger,
float  clip_p = 0.f 
)

◆ gen_cs_example_mtr()

void VW::details::gen_cs_example_mtr ( cb_to_cs_adf_mtr c,
VW::multi_ex ec_seq,
VW::cs_label cs_labels,
uint64_t  offset_index 
)

◆ gen_cs_example_sm()

void VW::details::gen_cs_example_sm ( VW::multi_ex examples,
uint32_t  chosen_action,
float  sign_offset,
const VW::action_scores action_vals,
VW::cs_label cs_labels 
)

◆ gen_cs_label()

template<bool is_learn>
void VW::details::gen_cs_label ( cb_to_cs c,
VW::example ec,
VW::cs_label cs_ld,
uint32_t  action,
float  clip_p = 0.f 
)

◆ gen_cs_test_example()

void VW::details::gen_cs_test_example ( const VW::multi_ex examples,
VW::cs_label cs_labels 
)

◆ gen_negative_pow10s()

template<std::size_t ArrayLength, std::size_t... IntegerSequence>
constexpr std::array< float, ArrayLength > VW::details::gen_negative_pow10s ( index_sequence< IntegerSequence... >  )
constexpr

◆ gen_positive_pow10s()

template<std::size_t ArrayLength, std::size_t... IntegerSequence>
constexpr std::array< float, ArrayLength > VW::details::gen_positive_pow10s ( index_sequence< IntegerSequence... >  )
constexpr

◆ generate_cubic_char_combination()

std::tuple< VW::details::features_range_t, VW::details::features_range_t, VW::details::features_range_t > VW::details::generate_cubic_char_combination ( const std::array< VW::features, VW::NUM_NAMESPACES > &  feature_groups,
VW::namespace_index  ns_idx1,
VW::namespace_index  ns_idx2,
VW::namespace_index  ns_idx3 
)
inline

◆ generate_generic_char_combination()

std::vector< VW::details::features_range_t > VW::details::generate_generic_char_combination ( const std::array< VW::features, VW::NUM_NAMESPACES > &  feature_groups,
const std::vector< VW::namespace_index > &  terms 
)
inline

◆ generate_generic_extent_combination_iterative()

template<typename DispatchCombinationFuncT >
void VW::details::generate_generic_extent_combination_iterative ( const std::array< VW::features, VW::NUM_NAMESPACES > &  feature_groups,
const std::vector< VW::extent_term > &  terms,
const DispatchCombinationFuncT &  dispatch_combination_func,
std::stack< VW::details::extent_interaction_expansion_stack_item > &  in_process_frames,
VW::moved_object_pool< VW::details::extent_interaction_expansion_stack_item > &  frame_pool 
)

◆ generate_namespace_combinations_with_repetition()

template<typename T >
std::vector< std::vector< T > > VW::details::generate_namespace_combinations_with_repetition ( const std::set< T > &  namespaces,
size_t  num_to_pick 
)

◆ generate_namespace_permutations_with_repetition()

template<typename T >
std::vector< std::vector< T > > VW::details::generate_namespace_permutations_with_repetition ( const std::set< T > &  namespaces,
size_t  num_to_pick 
)

◆ generate_quadratic_char_combination()

std::tuple< VW::details::features_range_t, VW::details::features_range_t > VW::details::generate_quadratic_char_combination ( const std::array< VW::features, VW::NUM_NAMESPACES > &  feature_groups,
VW::namespace_index  ns_idx1,
VW::namespace_index  ns_idx2 
)
inline

◆ get_block()

VW_STD14_CONSTEXPR uint32_t VW::details::get_block ( const char *  p,
size_t  i 
)
inline

◆ get_prediction()

void VW::details::get_prediction ( VW::io::reader f,
float &  res,
float &  weight 
)

◆ global_print_newline()

void VW::details::global_print_newline ( const std::vector< std::unique_ptr< VW::io::writer > > &  final_prediction_sink,
VW::io::logger logger 
)

◆ has_empty_interaction() [1/2]

bool VW::details::has_empty_interaction ( const std::array< VW::features, VW::NUM_NAMESPACES > &  feature_groups,
const std::vector< VW::extent_term > &  namespace_indexes 
)
inline

◆ has_empty_interaction() [2/2]

bool VW::details::has_empty_interaction ( const std::array< VW::features, VW::NUM_NAMESPACES > &  feature_groups,
const std::vector< VW::namespace_index > &  namespace_indexes 
)
inline

◆ has_empty_interaction_cubic()

bool VW::details::has_empty_interaction_cubic ( const std::array< VW::features, VW::NUM_NAMESPACES > &  feature_groups,
const std::vector< VW::namespace_index > &  namespace_indexes 
)
inline

◆ has_empty_interaction_quadratic()

bool VW::details::has_empty_interaction_quadratic ( const std::array< VW::features, VW::NUM_NAMESPACES > &  feature_groups,
const std::vector< VW::namespace_index > &  namespace_indexes 
)
inline

◆ hashall()

VW_STD14_CONSTEXPR uint32_t VW::details::hashall ( const char *  s,
size_t  len,
uint32_t  h 
)
inline

◆ hashstring()

VW_STD14_CONSTEXPR uint32_t VW::details::hashstring ( const char *  s,
size_t  len,
uint32_t  h 
)
inline

◆ indices_to_values_ignore_last_index()

template<typename T >
std::vector< T > VW::details::indices_to_values_ignore_last_index ( const std::vector< size_t > &  indices,
const std::set< T > &  values 
)

◆ indices_to_values_one_based()

template<typename T >
std::vector< T > VW::details::indices_to_values_one_based ( const std::vector< size_t > &  indices,
const std::set< T > &  values 
)

◆ initialize_regressor()

void VW::details::initialize_regressor ( VW::workspace all)

◆ inner_kernel()

template<class DataT , class WeightOrIndexT , void(*)(DataT &, float, WeightOrIndexT) FuncT, bool audit, void(*)(DataT &, const VW::audit_strings *) audit_func, class WeightsT >
void VW::details::inner_kernel ( DataT &  dat,
VW::features::const_audit_iterator begin,
VW::features::const_audit_iterator end,
const uint64_t  offset,
WeightsT &  weights,
VW::feature_value  ft_value,
VW::feature_index  halfhash 
)

◆ instantiate_learner()

void VW::details::instantiate_learner ( VW::workspace all,
std::unique_ptr< VW::setup_base_i learner_builder 
)

◆ int_of_string() [1/2]

int VW::details::int_of_string ( VW::string_view  s,
char *&  end,
VW::io::logger logger 
)
inline

◆ int_of_string() [2/2]

int VW::details::int_of_string ( VW::string_view  s,
VW::io::logger logger 
)
inline

◆ interaction_value()

constexpr float VW::details::interaction_value ( float  value1,
float  value2 
)
inlineconstexpr

◆ load_header_merge_options()

config::options_i & VW::details::load_header_merge_options ( config::options_i options,
VW::workspace all,
io_buf model,
bool &  interactions_settings_duplicated 
)

◆ lock_done()

void VW::details::lock_done ( parser p)

◆ merand48()

float VW::details::merand48 ( uint64_t &  initial)
inline

◆ merand48_boxmuller()

float VW::details::merand48_boxmuller ( uint64_t &  index)
inline

◆ merand48_noadvance()

float VW::details::merand48_noadvance ( uint64_t  v)
inline

◆ merge_options_from_header_strings()

void VW::details::merge_options_from_header_strings ( const std::vector< std::string > &  strings,
bool  skip_interactions,
VW::config::options_i options,
bool &  is_ccb_input_model 
)

◆ murmurhash_x86_32()

VW_STD14_CONSTEXPR uint32_t VW::details::murmurhash_x86_32 ( const char *  data,
size_t  len,
uint32_t  seed 
)
inline

◆ must_be_left_sorted()

template<typename T >
bool VW::details::must_be_left_sorted ( const std::vector< T > &  oi)
inline

◆ open_vw_binary_socket() [1/2]

std::unique_ptr< VW::io::socket > VW::details::open_vw_binary_socket ( const std::string &  host,
uint16_t  port,
VW::io::logger logger 
)

◆ open_vw_binary_socket() [2/2]

std::unique_ptr< VW::io::socket > VW::details::open_vw_binary_socket ( const std::string &  host_and_optional_port,
VW::io::logger logger 
)

◆ output_and_account_example()

void VW::details::output_and_account_example ( VW::workspace all,
const VW::example ec 
)

◆ output_and_account_no_label_example()

void VW::details::output_and_account_no_label_example ( VW::workspace all,
VW::example ec 
)

◆ output_cs_example() [1/2]

void VW::details::output_cs_example ( VW::workspace all,
const VW::example ec 
)

◆ output_cs_example() [2/2]

void VW::details::output_cs_example ( VW::workspace all,
const VW::example ec,
const cs_label cs_label,
uint32_t  multiclass_prediction 
)

◆ output_example_prediction_cs_label() [1/2]

template<typename UnusedDataT >
void VW::details::output_example_prediction_cs_label ( VW::workspace all,
const UnusedDataT &  ,
const VW::example ec,
VW::io::logger logger 
)

◆ output_example_prediction_cs_label() [2/2]

void VW::details::output_example_prediction_cs_label ( VW::workspace all,
const VW::example ec,
VW::io::logger logger 
)

◆ output_example_prediction_multiclass_label() [1/2]

template<typename UnusedDataT >
void VW::details::output_example_prediction_multiclass_label ( VW::workspace all,
const UnusedDataT &  ,
const VW::example ec,
VW::io::logger logger 
)

◆ output_example_prediction_multiclass_label() [2/2]

void VW::details::output_example_prediction_multiclass_label ( VW::workspace all,
const VW::example ec,
VW::io::logger logger 
)

◆ output_example_prediction_multilabel()

void VW::details::output_example_prediction_multilabel ( VW::workspace all,
const VW::example ec 
)

◆ output_example_prediction_simple_label() [1/2]

template<typename UnusedDataT >
void VW::details::output_example_prediction_simple_label ( VW::workspace all,
const UnusedDataT &  ,
const VW::example ec,
VW::io::logger logger 
)

◆ output_example_prediction_simple_label() [2/2]

void VW::details::output_example_prediction_simple_label ( VW::workspace all,
const VW::example ec,
VW::io::logger logger 
)

◆ parse_args()

std::unique_ptr< VW::workspace > VW::details::parse_args ( std::unique_ptr< config::options_i, options_deleter_type options,
VW::trace_message_t  trace_listener,
void *  trace_context,
VW::io::logger custom_logger 
)

◆ parse_dictionary_argument()

void VW::details::parse_dictionary_argument ( VW::workspace all,
const std::string &  str 
)

◆ parse_dispatch()

template<typename DispatchFuncT >
void VW::details::parse_dispatch ( VW::workspace all,
DispatchFuncT &  dispatch 
)

◆ parse_float()

float VW::details::parse_float ( const char *  p,
size_t &  end_idx,
const char *  end_line = nullptr 
)
inline

◆ parse_full_name_interactions()

std::vector< extent_term > VW::details::parse_full_name_interactions ( VW::workspace all,
VW::string_view  str 
)

◆ parse_mask_regressor_args()

void VW::details::parse_mask_regressor_args ( VW::workspace all,
const std::string &  feature_mask,
std::vector< std::string >  initial_regressors 
)

◆ parse_modules()

void VW::details::parse_modules ( config::options_i options,
VW::workspace all,
bool  interactions_settings_duplicated,
std::vector< std::string > &  dictionary_namespaces 
)

◆ parse_sources()

void VW::details::parse_sources ( config::options_i options,
VW::workspace all,
io_buf model,
bool  skip_model_load 
)

◆ print_action_score()

void VW::details::print_action_score ( VW::io::writer f,
const VW::v_array< action_score > &  a_s,
const VW::v_array< char > &  ,
VW::io::logger logger 
)

◆ print_audit_features()

void VW::details::print_audit_features ( VW::workspace ,
VW::example ec 
)

◆ print_cs_update()

void VW::details::print_cs_update ( VW::workspace all,
bool  is_test,
const VW::example ec,
const VW::multi_ex ec_seq,
bool  multilabel,
uint32_t  prediction 
)

◆ print_cs_update_action_scores()

void VW::details::print_cs_update_action_scores ( VW::workspace all,
bool  is_test,
size_t  num_features,
const VW::action_scores action_scores 
)

◆ print_cs_update_multiclass()

void VW::details::print_cs_update_multiclass ( VW::workspace all,
bool  is_test,
size_t  num_features,
uint32_t  prediction 
)

◆ print_enabled_learners()

void VW::details::print_enabled_learners ( VW::workspace all,
std::vector< std::string > &  enabled_learners 
)

◆ print_features()

void VW::details::print_features ( VW::workspace all,
VW::example ec 
)

◆ print_multiclass_update_with_probability()

void VW::details::print_multiclass_update_with_probability ( VW::workspace all,
const VW::example ec,
uint32_t  prediction 
)

◆ print_multiclass_update_with_score()

void VW::details::print_multiclass_update_with_score ( VW::workspace all,
const VW::example ec,
uint32_t  prediction 
)

◆ print_no_label_update()

void VW::details::print_no_label_update ( VW::workspace all,
VW::example ec 
)

◆ print_result_by_ref()

void VW::details::print_result_by_ref ( VW::io::writer f,
float  res,
float  weight,
const VW::v_array< char > &  tag,
VW::io::logger logger 
)

◆ print_scalars()

void VW::details::print_scalars ( VW::io::writer f,
const VW::v_array< float > &  scalars,
const VW::v_array< char > &  tag,
VW::io::logger logger 
)

◆ print_update()

void VW::details::print_update ( VW::workspace all,
const VW::example ec 
)

◆ print_update_cb()

void VW::details::print_update_cb ( VW::workspace all,
bool  is_test,
const VW::example ec,
const VW::multi_ex ec_seq,
bool  action_scores,
const VW::cb_class known_cost 
)

◆ print_update_cs_label() [1/2]

template<typename UnusedDataT >
void VW::details::print_update_cs_label ( VW::workspace all,
shared_data sd,
const UnusedDataT &  ,
const VW::example ec,
VW::io::logger logger 
)

◆ print_update_cs_label() [2/2]

void VW::details::print_update_cs_label ( VW::workspace all,
shared_data sd,
const VW::example ec,
VW::io::logger logger 
)

◆ print_update_multiclass_label() [1/2]

template<typename UnusedDataT >
void VW::details::print_update_multiclass_label ( VW::workspace all,
shared_data sd,
const UnusedDataT &  ,
const VW::example ec,
VW::io::logger logger 
)

◆ print_update_multiclass_label() [2/2]

void VW::details::print_update_multiclass_label ( VW::workspace all,
shared_data sd,
const VW::example ec,
VW::io::logger logger 
)

◆ print_update_multilabel()

void VW::details::print_update_multilabel ( VW::workspace all,
const VW::example ec 
)

◆ print_update_simple_label() [1/2]

template<typename UnusedDataT >
void VW::details::print_update_simple_label ( VW::workspace all,
shared_data sd,
const UnusedDataT &  ,
const VW::example ec,
VW::io::logger logger 
)

◆ print_update_simple_label() [2/2]

void VW::details::print_update_simple_label ( VW::workspace all,
shared_data sd,
const VW::example ec,
VW::io::logger logger 
)

◆ process_cubic_interaction()

template<bool Audit, typename KernelFuncT , typename AuditFuncT >
size_t VW::details::process_cubic_interaction ( const std::tuple< VW::details::features_range_t, VW::details::features_range_t, VW::details::features_range_t > &  range,
bool  permutations,
const KernelFuncT &  kernel_func,
const AuditFuncT &  audit_func 
)

◆ process_generic_interaction()

template<bool Audit, typename KernelFuncT , typename AuditFuncT >
size_t VW::details::process_generic_interaction ( const std::vector< VW::details::features_range_t > &  range,
bool  permutations,
const KernelFuncT &  kernel_func,
const AuditFuncT &  audit_func,
std::vector< VW::details::feature_gen_data > &  state_data 
)

◆ process_quadratic_interaction()

template<bool Audit, typename KernelFuncT , typename AuditFuncT >
size_t VW::details::process_quadratic_interaction ( const std::tuple< VW::details::features_range_t, VW::details::features_range_t > &  range,
bool  permutations,
const KernelFuncT &  kernel_func,
const AuditFuncT &  audit_func 
)

◆ read_regressor_file()

void VW::details::read_regressor_file ( VW::workspace all,
const std::vector< std::string > &  files,
VW::io_buf io_temp 
)

◆ reset_source()

void VW::details::reset_source ( VW::workspace all,
size_t  numbits 
)

◆ return_no_label_example()

void VW::details::return_no_label_example ( VW::workspace all,
void *  ,
VW::example ec 
)

◆ return_simple_example()

void VW::details::return_simple_example ( VW::workspace all,
void *  ,
VW::example ec 
)

◆ rotl32()

constexpr uint32_t VW::details::rotl32 ( uint32_t  x,
int8_t  r 
)
inlineconstexprnoexcept

◆ safe_probability()

float VW::details::safe_probability ( float  prob,
VW::io::logger logger 
)

◆ save_load_header()

void VW::details::save_load_header ( VW::workspace all,
VW::io_buf model_file,
bool  read,
bool  text,
std::string &  file_options,
VW::config::options_i options 
)

◆ save_load_online_state_gd()

void VW::details::save_load_online_state_gd ( VW::workspace all,
VW::io_buf model_file,
bool  read,
bool  text,
std::vector< VW::reductions::details::gd_per_model_state > &  pms,
VW::reductions::gd g = nullptr,
uint32_t  ftrl_size = 0 
)

◆ save_load_regressor_gd()

void VW::details::save_load_regressor_gd ( VW::workspace all,
VW::io_buf model_file,
bool  read,
bool  text 
)

◆ save_predictor()

void VW::details::save_predictor ( VW::workspace all,
const std::string &  reg_name,
size_t  current_pass 
)

◆ set_done()

void VW::details::set_done ( VW::workspace all)

◆ sort_and_filter_duplicate_interactions()

template<typename T >
void VW::details::sort_and_filter_duplicate_interactions ( std::vector< std::vector< T > > &  vec,
bool  filter_duplicates,
size_t &  removed_cnt,
size_t &  sorted_cnt 
)

◆ sort_interactions_comparator()

bool VW::details::sort_interactions_comparator ( const std::vector< VW::namespace_index > &  a,
const std::vector< VW::namespace_index > &  b 
)

◆ summarize_holdout_set()

bool VW::details::summarize_holdout_set ( VW::workspace all,
size_t &  no_win_counter 
)

◆ term_is_empty()

bool VW::details::term_is_empty ( VW::namespace_index  term,
const std::array< VW::features, VW::NUM_NAMESPACES > &  feature_groups 
)
inline

◆ truncate_example_namespace()

void VW::details::truncate_example_namespace ( VW::example ec,
VW::namespace_index  ns,
const features fs 
)

◆ truncate_example_namespace_from_memory()

void VW::details::truncate_example_namespace_from_memory ( const label_feature_map lfm,
VW::example ec,
size_t  lab 
)

◆ truncate_example_namespaces_from_example()

void VW::details::truncate_example_namespaces_from_example ( VW::example target,
const VW::example source 
)

◆ unflatten_namespace_extents()

std::vector< namespace_extent > VW::details::unflatten_namespace_extents ( const std::vector< std::pair< bool, uint64_t > > &  extents)

◆ update_stats_cs_label() [1/2]

template<typename UnusedDataT >
void VW::details::update_stats_cs_label ( const VW::workspace all,
shared_data sd,
const UnusedDataT &  ,
const VW::example ec,
VW::io::logger logger 
)

◆ update_stats_cs_label() [2/2]

void VW::details::update_stats_cs_label ( const VW::workspace all,
shared_data sd,
const VW::example ec,
VW::io::logger logger 
)

◆ update_stats_multiclass_label() [1/2]

template<typename UnusedDataT >
void VW::details::update_stats_multiclass_label ( const VW::workspace all,
shared_data sd,
const UnusedDataT &  ,
const VW::example ec,
VW::io::logger logger 
)

◆ update_stats_multiclass_label() [2/2]

void VW::details::update_stats_multiclass_label ( const VW::workspace all,
shared_data sd,
const VW::example ec,
VW::io::logger logger 
)

◆ update_stats_multilabel()

void VW::details::update_stats_multilabel ( const VW::workspace all,
const VW::example ec 
)

◆ update_stats_simple_label() [1/2]

template<typename UnusedDataT >
void VW::details::update_stats_simple_label ( const VW::workspace all,
shared_data sd,
const UnusedDataT &  ,
const VW::example ec,
VW::io::logger logger 
)

◆ update_stats_simple_label() [2/2]

void VW::details::update_stats_simple_label ( const VW::workspace all,
shared_data sd,
const VW::example ec,
VW::io::logger logger 
)

◆ vec_add()

void VW::details::vec_add ( float &  p,
float  fx,
float  fw 
)
inline

◆ vec_add_multipredict()

template<class T >
void VW::details::vec_add_multipredict ( multipredict_info< T > &  mp,
const float  fx,
uint64_t  fi 
)
inline

Variable Documentation

◆ ACTION_TYPE

constexpr const char* VW::details::ACTION_TYPE = "action"
constexpr

◆ AFFIX_CONSTANT

constexpr int VW::details::AFFIX_CONSTANT = 13903957
constexpr

◆ AFFIX_NAMESPACE

constexpr unsigned char VW::details::AFFIX_NAMESPACE = 132
constexpr

◆ AR_BUF_SIZE

constexpr size_t VW::details::AR_BUF_SIZE = 1 << 16
constexpr

◆ AUTOLINK_NAMESPACE

constexpr unsigned char VW::details::AUTOLINK_NAMESPACE = 130
constexpr

◆ BASELINE_DEFAULT_TAU

constexpr float VW::details::BASELINE_DEFAULT_TAU = 0.999f
constexpr

◆ BASELINE_ENABLED_MESSAGE_NAMESPACE

constexpr unsigned char VW::details::BASELINE_ENABLED_MESSAGE_NAMESPACE = 137
constexpr

◆ BIAS

constexpr int VW::details::BIAS = 127 << 23
constexpr

◆ CA_LABEL

constexpr const char* VW::details::CA_LABEL = "ca"
constexpr

◆ CCB_ID_NAMESPACE

constexpr unsigned char VW::details::CCB_ID_NAMESPACE = 140
constexpr

◆ CCB_LABEL

constexpr const char* VW::details::CCB_LABEL = "ccb"
constexpr

◆ CCB_SLOT_NAMESPACE

constexpr unsigned char VW::details::CCB_SLOT_NAMESPACE = 139
constexpr

◆ CHOSEN_ACTION

constexpr const char* VW::details::CHOSEN_ACTION = "chosen_action"
constexpr

◆ CONDITIONING_NAMESPACE

constexpr unsigned char VW::details::CONDITIONING_NAMESPACE = 134
constexpr

◆ CONSTANT

constexpr uint64_t VW::details::CONSTANT = 11650396
constexpr

◆ CONSTANT_A

constexpr uint64_t VW::details::CONSTANT_A = 0xeece66d5deece66dULL
constexpr

◆ CONSTANT_C

constexpr uint64_t VW::details::CONSTANT_C = 2147483647
constexpr

◆ CONSTANT_NAMESPACE

constexpr unsigned char VW::details::CONSTANT_NAMESPACE = 128
constexpr

◆ CRESSEREAD_DEFAULT_TAU

constexpr float VW::details::CRESSEREAD_DEFAULT_TAU = 1.0f
constexpr

◆ CS_DEFAULT_ALPHA

constexpr float VW::details::CS_DEFAULT_ALPHA = 0.05f
constexpr

◆ CS_ROBUST_DEFAULT_ALPHA

constexpr double VW::details::CS_ROBUST_DEFAULT_ALPHA = 0.05f
constexpr

◆ CUBIC_CONSTANT

constexpr int VW::details::CUBIC_CONSTANT = 21791
constexpr

◆ CUBIC_CONSTANT2

constexpr int VW::details::CUBIC_CONSTANT2 = 37663
constexpr

◆ DEFAULT_ALPHA

constexpr float VW::details::DEFAULT_ALPHA = 0.05f
constexpr

◆ DEFAULT_NAMESPACE

constexpr unsigned char VW::details::DEFAULT_NAMESPACE = 32
constexpr

◆ DICTIONARY_NAMESPACE

constexpr unsigned char VW::details::DICTIONARY_NAMESPACE = 135
constexpr

◆ FNV_PRIME

constexpr uint32_t VW::details::FNV_PRIME = 16777619
constexpr

◆ GRAPH_FEEDBACK_TYPE

constexpr const char* VW::details::GRAPH_FEEDBACK_TYPE = "graph"
constexpr

◆ HISTORY_NAMESPACE

constexpr unsigned char VW::details::HISTORY_NAMESPACE = 127
constexpr

◆ IGL_FEEDBACK_NAMESPACE

constexpr unsigned char VW::details::IGL_FEEDBACK_NAMESPACE = 141
constexpr

◆ INTERACTION_NS_END

constexpr unsigned char VW::details::INTERACTION_NS_END = '~'
constexpr

◆ INTERACTION_NS_START

constexpr unsigned char VW::details::INTERACTION_NS_START = ' '
constexpr

◆ NEIGHBOR_NAMESPACE

constexpr unsigned char VW::details::NEIGHBOR_NAMESPACE
constexpr
Initial value:
=
131

◆ NN_OUTPUT_NAMESPACE

constexpr unsigned char VW::details::NN_OUTPUT_NAMESPACE = 129
constexpr

◆ NODE_ID_NAMESPACE

constexpr unsigned char VW::details::NODE_ID_NAMESPACE = 136
constexpr

◆ PDF

constexpr const char* VW::details::PDF = "pdf"
constexpr

◆ POW10_BASE

constexpr float VW::details::POW10_BASE = 10.f
constexpr

◆ PROBABILITY_TOLERANCE

constexpr float VW::details::PROBABILITY_TOLERANCE = 1e-5f
constexpr

◆ QUADRATIC_CONSTANT

constexpr int VW::details::QUADRATIC_CONSTANT = 27942141
constexpr

◆ SHARED_TYPE

constexpr const char* VW::details::SHARED_TYPE = "shared"
constexpr

◆ SLATES_LABEL

constexpr const char* VW::details::SLATES_LABEL = "slates"
constexpr

◆ SLOT_TYPE

constexpr const char* VW::details::SLOT_TYPE = "slot"
constexpr

◆ SPELLING_NAMESPACE

constexpr unsigned char VW::details::SPELLING_NAMESPACE = 133
constexpr

◆ UINT64_ONE

constexpr uint64_t VW::details::UINT64_ONE = 1ULL
constexpr

◆ VALUES_ABOVE_AND_INCLUDING_ZERO

const constexpr uint8_t VW::details::VALUES_ABOVE_AND_INCLUDING_ZERO = FLT_MAX_10_EXP + 1
constexpr

◆ VALUES_ABOVE_ZERO

const constexpr uint8_t VW::details::VALUES_ABOVE_ZERO = FLT_MAX_10_EXP
constexpr

◆ VALUES_BELOW_ZERO

const constexpr uint8_t VW::details::VALUES_BELOW_ZERO = FLT_MIN_10_EXP * -1
constexpr

◆ WAP_LDF_NAMESPACE

constexpr unsigned char VW::details::WAP_LDF_NAMESPACE = 126
constexpr

◆ WILDCARD_NAMESPACE

constexpr unsigned char VW::details::WILDCARD_NAMESPACE = 58
constexpr