Vowpal Wabbit
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl > Class Template Reference

#include <automl_impl.h>

Public Member Functions

 interaction_config_manager (uint64_t global_lease, uint64_t max_live_configs, std::shared_ptr< VW::rand_state > rand_state, uint64_t priority_challengers, const std::string &interaction_type, const std::string &oracle_type, dense_parameters &weights, priority_func calc_priority, double automl_significance_level, VW::io::logger *logger, uint32_t &feature_width, bool ccb_on, config_type conf_type, std::string trace_prefix, bool reward_as_cost, double tol_x, bool is_brentq)
 
void do_learning (VW::LEARNER::learner &base, multi_ex &ec, uint64_t live_slot)
 
void persist (metric_sink &metrics, bool verbose)
 
void schedule ()
 
void check_for_new_champ ()
 
void process_example (const multi_ex &ec)
 

Static Public Member Functions

static void apply_config_at_slot (estimator_vec_t< estimator_impl > &estimators, std::vector< ns_based_config > &configs, const uint64_t live_slot, const uint64_t config_index, const double sig_level, const double tol_x, bool is_brentq, const uint64_t priority_challengers)
 
static void apply_new_champ (config_oracle_impl &config_oracle, const uint64_t winning_challenger_slot, estimator_vec_t< estimator_impl > &estimators, const uint64_t priority_challengers, const std::map< namespace_index, uint64_t > &ns_counter)
 
static void insert_starting_configuration (estimator_vec_t< estimator_impl > &estimators, config_oracle_impl &config_oracle, const double sig_level, const double tol_x, bool is_brentq)
 

Public Attributes

uint64_t total_champ_switches = 0
 
uint64_t total_learn_count = 0
 
const uint64_t current_champ = 0
 
const uint64_t default_lease
 
const uint64_t max_live_configs
 
uint64_t priority_challengers
 
dense_parametersweights
 
double automl_significance_level
 
VW::io::loggerlogger
 
uint32_t & feature_width
 
bool reward_as_cost
 
double tol_x
 
bool is_brentq
 
std::map< namespace_index, uint64_t > ns_counter
 
estimator_vec_t< estimator_impl > estimators
 
std::unique_ptr< std::ofstream > champ_log_file
 
std::unique_ptr< std::ofstream > inputlabel_log_file
 

Constructor & Destructor Documentation

◆ interaction_config_manager()

template<typename config_oracle_impl , typename estimator_impl >
VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl >::interaction_config_manager ( uint64_t  global_lease,
uint64_t  max_live_configs,
std::shared_ptr< VW::rand_state rand_state,
uint64_t  priority_challengers,
const std::string &  interaction_type,
const std::string &  oracle_type,
dense_parameters weights,
priority_func  calc_priority,
double  automl_significance_level,
VW::io::logger logger,
uint32_t &  feature_width,
bool  ccb_on,
config_type  conf_type,
std::string  trace_prefix,
bool  reward_as_cost,
double  tol_x,
bool  is_brentq 
)

Member Function Documentation

◆ apply_config_at_slot()

template<typename config_oracle_impl , typename estimator_impl >
static void VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl >::apply_config_at_slot ( estimator_vec_t< estimator_impl > &  estimators,
std::vector< ns_based_config > &  configs,
const uint64_t  live_slot,
const uint64_t  config_index,
const double  sig_level,
const double  tol_x,
bool  is_brentq,
const uint64_t  priority_challengers 
)
static

◆ apply_new_champ()

template<typename config_oracle_impl , typename estimator_impl >
static void VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl >::apply_new_champ ( config_oracle_impl &  config_oracle,
const uint64_t  winning_challenger_slot,
estimator_vec_t< estimator_impl > &  estimators,
const uint64_t  priority_challengers,
const std::map< namespace_index, uint64_t > &  ns_counter 
)
static

◆ check_for_new_champ()

template<typename config_oracle_impl , typename estimator_impl >
void VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl >::check_for_new_champ ( )

◆ do_learning()

template<typename config_oracle_impl , typename estimator_impl >
void VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl >::do_learning ( VW::LEARNER::learner base,
multi_ex ec,
uint64_t  live_slot 
)

◆ insert_starting_configuration()

template<typename config_oracle_impl , typename estimator_impl >
static void VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl >::insert_starting_configuration ( estimator_vec_t< estimator_impl > &  estimators,
config_oracle_impl &  config_oracle,
const double  sig_level,
const double  tol_x,
bool  is_brentq 
)
static

◆ persist()

template<typename config_oracle_impl , typename estimator_impl >
void VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl >::persist ( metric_sink metrics,
bool  verbose 
)

◆ process_example()

template<typename config_oracle_impl , typename estimator_impl >
void VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl >::process_example ( const multi_ex ec)

◆ schedule()

template<typename config_oracle_impl , typename estimator_impl >
void VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl >::schedule ( )

Member Data Documentation

◆ automl_significance_level

template<typename config_oracle_impl , typename estimator_impl >
double VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl >::automl_significance_level

◆ champ_log_file

template<typename config_oracle_impl , typename estimator_impl >
std::unique_ptr<std::ofstream> VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl >::champ_log_file

◆ current_champ

template<typename config_oracle_impl , typename estimator_impl >
const uint64_t VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl >::current_champ = 0

◆ default_lease

template<typename config_oracle_impl , typename estimator_impl >
const uint64_t VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl >::default_lease

◆ estimators

template<typename config_oracle_impl , typename estimator_impl >
estimator_vec_t<estimator_impl> VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl >::estimators

◆ feature_width

template<typename config_oracle_impl , typename estimator_impl >
uint32_t& VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl >::feature_width

◆ inputlabel_log_file

template<typename config_oracle_impl , typename estimator_impl >
std::unique_ptr<std::ofstream> VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl >::inputlabel_log_file

◆ is_brentq

template<typename config_oracle_impl , typename estimator_impl >
bool VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl >::is_brentq

◆ logger

template<typename config_oracle_impl , typename estimator_impl >
VW::io::logger* VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl >::logger

◆ max_live_configs

template<typename config_oracle_impl , typename estimator_impl >
const uint64_t VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl >::max_live_configs

◆ ns_counter

template<typename config_oracle_impl , typename estimator_impl >
std::map<namespace_index, uint64_t> VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl >::ns_counter

◆ priority_challengers

template<typename config_oracle_impl , typename estimator_impl >
uint64_t VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl >::priority_challengers

◆ reward_as_cost

template<typename config_oracle_impl , typename estimator_impl >
bool VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl >::reward_as_cost

◆ tol_x

template<typename config_oracle_impl , typename estimator_impl >
double VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl >::tol_x

◆ total_champ_switches

template<typename config_oracle_impl , typename estimator_impl >
uint64_t VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl >::total_champ_switches = 0

◆ total_learn_count

template<typename config_oracle_impl , typename estimator_impl >
uint64_t VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl >::total_learn_count = 0

◆ weights

template<typename config_oracle_impl , typename estimator_impl >
dense_parameters& VW::reductions::automl::interaction_config_manager< config_oracle_impl, estimator_impl >::weights

The documentation for this class was generated from the following file: