Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Langford <jl@hunch.net>2013-12-24 23:46:23 +0400
committerJohn Langford <jl@hunch.net>2013-12-24 23:46:23 +0400
commitc95619bd2c56b346fe317b8fa134ee1c5b7c828e (patch)
treefbb31b1a16c318c272950188733acb6e02d91502 /vowpalwabbit/cb.h
parentcc7db28db06560a45bf4c61c2b936a02b3697fa8 (diff)
initial cbify and a bugfix
Diffstat (limited to 'vowpalwabbit/cb.h')
-rw-r--r--vowpalwabbit/cb.h8
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 {