Vowpal Wabbit
Namespaces | Macros | Functions
cb_algs.h File Reference
#include "baseline.h"
#include "guard.h"
#include "cb.h"
#include "example.h"
#include "learner.h"
#include <cfloat>

Namespaces

 CB_ALGS
 

Macros

#define CB_TYPE_DR   0
 
#define CB_TYPE_DM   1
 
#define CB_TYPE_IPS   2
 
#define CB_TYPE_MTR   3
 
#define CB_TYPE_SM   4
 

Functions

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

Macro Definition Documentation

#define CB_TYPE_DM   1
#define CB_TYPE_DR   0
#define CB_TYPE_IPS   2
#define CB_TYPE_MTR   3
#define CB_TYPE_SM   4

Function Documentation

VW::LEARNER::base_learner* cb_algs_setup ( VW::config::options_i options,
vw all 
)