Vowpal Wabbit
ccb_label.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <cstdint>
4 #include <vector>
5 
6 #include "label_parser.h"
7 #include "v_array.h"
8 #include "action_score.h"
9 
10 namespace CCB
11 {
13 {
14  // The cost of this class
15  float cost;
16 
17  // Either probability for top action or for all actions in action set.
18  // Top action is always in first position.
20 };
21 
22 enum example_type : uint8_t
23 {
24  unset = 0,
25  shared = 1,
26  action = 2,
27  slot = 3
28 };
29 
30 struct label
31 {
33  // Outcome may be unset.
36  float weight;
37 };
38 
40 } // namespace CCB
example_type
Definition: ccb_label.h:22
uint32_t action
Definition: search.h:19
float weight
Definition: ccb_label.h:36
label_parser ccb_label_parser
Definition: ccb_label.cc:358
ACTION_SCORE::action_scores probabilities
Definition: ccb_label.h:19
Definition: ccb_label.cc:22
example_type type
Definition: ccb_label.h:32
v_array< uint32_t > explicit_included_actions
Definition: ccb_label.h:35
conditional_contextual_bandit_outcome * outcome
Definition: ccb_label.h:34