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 &all, float loss, example &ec, const CB::label &ld, CB::cb_class *known_cost)
 

Function Documentation

bool CB_ALGS::example_is_newline_not_header ( example const &  ec)
inline
void CB_ALGS::generic_output_example ( vw all,
float  loss,
example ec,
const CB::label ld,
CB::cb_class known_cost 
)
float CB_ALGS::get_cost_estimate ( const CB::cb_class observation,
uint32_t  action,
float  offset = 0. 
)
inline
float CB_ALGS::get_cost_estimate ( const CB::cb_class observation,
const COST_SENSITIVE::label scores,
uint32_t  action 
)
inline
float CB_ALGS::get_cost_estimate ( const CB::label ld,
uint32_t  action 
)
inline
float CB_ALGS::get_cost_estimate ( const ACTION_SCORE::action_score a_s,
float  cost,
uint32_t  action,
float  offset = 0. 
)
inline
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 
)