diff options
author | John Langford <jl@hunch.net> | 2013-12-24 23:46:23 +0400 |
---|---|---|
committer | John Langford <jl@hunch.net> | 2013-12-24 23:46:23 +0400 |
commit | c95619bd2c56b346fe317b8fa134ee1c5b7c828e (patch) | |
tree | fbb31b1a16c318c272950188733acb6e02d91502 /vowpalwabbit/cb.h | |
parent | cc7db28db06560a45bf4c61c2b936a02b3697fa8 (diff) |
initial cbify and a bugfix
Diffstat (limited to 'vowpalwabbit/cb.h')
-rw-r--r-- | vowpalwabbit/cb.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vowpalwabbit/cb.h b/vowpalwabbit/cb.h index 62870016..4fcb34e2 100644 --- a/vowpalwabbit/cb.h +++ b/vowpalwabbit/cb.h @@ -22,10 +22,10 @@ license as described in the file LICENSE. namespace CB { struct cb_class { - float x; // the cost of this class - uint32_t weight_index; // the index of this class - float prob_action; //new for bandit setting, specifies the probability the data collection policy chose this class for importance weighting - bool operator==(cb_class j){return weight_index == j.weight_index;} + float cost; // the cost of this class + uint32_t action; // the index of this class + float probability; //new for bandit setting, specifies the probability the data collection policy chose this class for importance weighting + bool operator==(cb_class j){return action == j.action;} }; struct label { |