Vowpal Wabbit
Classes | Functions | Variables
CB Namespace Reference

Classes

struct  cb_class
 
struct  label
 

Functions

bool ec_is_example_header (example const &ec)
 
std::pair< bool, cb_classget_observed_cost_cb (const label &ld)
 
void print_update (VW::workspace &all, bool is_test, const example &ec, const multi_ex *ec_seq, bool action_scores, const CB::cb_class *known_cost)
 
template<typename LabelT >
void default_label_additional_fields (LabelT &ld)
 
template<typename LabelT = CB::label>
void default_label (LabelT &ld)
 
template<typename LabelElmT = cb_class>
float get_probability (const LabelElmT &elm)
 
template<>
float get_probability (const VW::cb_continuous::continuous_label_elm &elm)
 
template<typename LabelT = CB::label, typename LabelElmT = cb_class>
bool is_test_label (const LabelT &ld)
 

Variables

label_parser cb_label
 

Function Documentation

◆ default_label()

template<typename LabelT = CB::label>
void CB::default_label ( LabelT &  ld)

◆ default_label_additional_fields()

template<typename LabelT >
void CB::default_label_additional_fields ( LabelT &  ld)

◆ ec_is_example_header()

bool CB::ec_is_example_header ( example const &  ec)

◆ get_observed_cost_cb()

std::pair<bool, cb_class> CB::get_observed_cost_cb ( const label ld)

◆ get_probability() [1/2]

template<typename LabelElmT = cb_class>
float CB::get_probability ( const LabelElmT &  elm)

◆ get_probability() [2/2]

template<>
float CB::get_probability ( const VW::cb_continuous::continuous_label_elm elm)
inline

◆ is_test_label()

template<typename LabelT = CB::label, typename LabelElmT = cb_class>
bool CB::is_test_label ( const LabelT &  ld)

◆ print_update()

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

Variable Documentation

◆ cb_label

label_parser CB::cb_label