Vowpal Wabbit
Functions
CB_ALGS Namespace Reference

Functions

template<bool is_learn>
float get_cost_pred (VW::LEARNER::single_learner *scorer, const CB::cb_class &known_cost, example &ec, uint32_t index, uint32_t base)
 
float get_cost_estimate (const CB::cb_class &observation, uint32_t action, float offset=0.)
 
float get_cost_estimate (const CB::cb_class &observation, const COST_SENSITIVE::label &scores, uint32_t action)
 
float get_cost_estimate (const CB::label &ld, uint32_t action)
 
float get_cost_estimate (const ACTION_SCORE::action_score &a_s, float cost, uint32_t action, float offset=0.)
 
bool example_is_newline_not_header (example const &ec)
 
void generic_output_example (VW::workspace &all, float loss, const example &ec, const CB::label &ld, const CB::cb_class *known_cost)
 

Function Documentation

◆ example_is_newline_not_header()

bool CB_ALGS::example_is_newline_not_header ( example const &  ec)
inline

◆ generic_output_example()

void CB_ALGS::generic_output_example ( VW::workspace all,
float  loss,
const example ec,
const CB::label ld,
const CB::cb_class known_cost 
)

◆ get_cost_estimate() [1/4]

float CB_ALGS::get_cost_estimate ( const CB::cb_class observation,
uint32_t  action,
float  offset = 0. 
)
inline

◆ get_cost_estimate() [2/4]

float CB_ALGS::get_cost_estimate ( const CB::cb_class observation,
const COST_SENSITIVE::label scores,
uint32_t  action 
)
inline

◆ get_cost_estimate() [3/4]

float CB_ALGS::get_cost_estimate ( const CB::label ld,
uint32_t  action 
)
inline

◆ get_cost_estimate() [4/4]

float CB_ALGS::get_cost_estimate ( const ACTION_SCORE::action_score a_s,
float  cost,
uint32_t  action,
float  offset = 0. 
)
inline

◆ get_cost_pred()

template<bool is_learn>
float CB_ALGS::get_cost_pred ( VW::LEARNER::single_learner scorer,
const CB::cb_class known_cost,
example ec,
uint32_t  index,
uint32_t  base 
)