Vowpal Wabbit
Public Member Functions | Public Attributes | List of all members
cbify Struct Reference

Public Member Functions

 ~cbify ()
 

Public Attributes

CB::label cb_label
 
uint64_t app_seed
 
action_scores a_s
 
size_t example_counter
 
vwall
 
bool use_adf
 
cbify_adf_data adf_data
 
float loss0
 
float loss1
 
std::vector< v_array< COST_SENSITIVE::wclass > > cs_costs
 
std::vector< v_array< CB::cb_class > > cb_costs
 
std::vector< ACTION_SCORE::action_scorescb_as
 

Detailed Description

Definition at line 24 of file cbify.cc.

Constructor & Destructor Documentation

◆ ~cbify()

cbify::~cbify ( )
inline

Definition at line 42 of file cbify.cc.

References a, CB::cb_label, VW::dealloc_example(), label_parser::delete_label, CB::delete_label(), v_array< T >::delete_v(), cbify_adf_data::ecs, free_it(), and cbify_adf_data::num_actions.

43  {
45  a_s.delete_v();
46 
47  if (use_adf)
48  {
49  for (size_t a = 0; a < adf_data.num_actions; ++a)
50  {
51  adf_data.ecs[a]->pred.a_s.delete_v();
54  }
55  for (auto& as : cb_as) as.delete_v();
56  }
57  }
multi_ex ecs
Definition: cbify.cc:20
action_scores a_s
Definition: cbify.cc:28
std::vector< ACTION_SCORE::action_scores > cb_as
Definition: cbify.cc:40
void(* delete_label)(void *)
Definition: label_parser.h:16
void dealloc_example(void(*delete_label)(void *), example &ec, void(*delete_prediction)(void *))
Definition: example.cc:219
void delete_label(void *v)
Definition: cb.cc:98
cbify_adf_data adf_data
Definition: cbify.cc:33
void free_it(void *ptr)
Definition: memory.h:94
CB::label cb_label
Definition: cbify.cc:26
label_parser cb_label
Definition: cb.cc:167
constexpr uint64_t a
Definition: rand48.cc:11
size_t num_actions
Definition: cbify.cc:21
bool use_adf
Definition: cbify.cc:32
void delete_v()
Definition: v_array.h:98

Member Data Documentation

◆ a_s

action_scores cbify::a_s

Definition at line 28 of file cbify.cc.

Referenced by predict_or_learn().

◆ adf_data

cbify_adf_data cbify::adf_data

Definition at line 33 of file cbify.cc.

Referenced by copy_example_to_adf(), init_adf_data(), and predict_or_learn_adf().

◆ all

vw* cbify::all

Definition at line 31 of file cbify.cc.

Referenced by copy_example_to_adf(), and init_adf_data().

◆ app_seed

uint64_t cbify::app_seed

Definition at line 27 of file cbify.cc.

Referenced by do_actual_learning_ldf(), predict_or_learn(), and predict_or_learn_adf().

◆ cb_as

std::vector<ACTION_SCORE::action_scores> cbify::cb_as

Definition at line 40 of file cbify.cc.

Referenced by do_actual_learning_ldf().

◆ cb_costs

std::vector<v_array<CB::cb_class> > cbify::cb_costs

Definition at line 39 of file cbify.cc.

Referenced by do_actual_learning_ldf().

◆ cb_label

CB::label cbify::cb_label

Definition at line 26 of file cbify.cc.

Referenced by do_actual_learning_ldf(), and predict_or_learn().

◆ cs_costs

std::vector<v_array<COST_SENSITIVE::wclass> > cbify::cs_costs

Definition at line 38 of file cbify.cc.

Referenced by do_actual_learning_ldf().

◆ example_counter

size_t cbify::example_counter

Definition at line 30 of file cbify.cc.

Referenced by do_actual_learning_ldf(), predict_or_learn(), and predict_or_learn_adf().

◆ loss0

float cbify::loss0

Definition at line 34 of file cbify.cc.

Referenced by loss(), loss_cs(), and loss_csldf().

◆ loss1

float cbify::loss1

Definition at line 35 of file cbify.cc.

Referenced by loss(), loss_cs(), and loss_csldf().

◆ use_adf

bool cbify::use_adf

Definition at line 32 of file cbify.cc.


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