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>2014-03-26 06:54:48 +0400
committerJohn Langford <jl@hunch.net>2014-03-26 06:54:48 +0400
commit08de9f7a05dc816d73c4d6d32ee94c762214bf8f (patch)
tree4d626c6267793c42537abf26b1af2df16fb84fac /vowpalwabbit/cbify.cc
parentb014c470efdec7c59ef5a2eb205f408bd72ac921 (diff)
refactor cost_sensitive definitions out of csoaa
Diffstat (limited to 'vowpalwabbit/cbify.cc')
-rw-r--r--vowpalwabbit/cbify.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/vowpalwabbit/cbify.cc b/vowpalwabbit/cbify.cc
index 467b2c84..c5675292 100644
--- a/vowpalwabbit/cbify.cc
+++ b/vowpalwabbit/cbify.cc
@@ -1,7 +1,7 @@
#include <float.h>
#include "multiclass.h"
#include "vw.h"
-#include "csoaa.h"
+#include "cost_sensitive.h"
#include "cb.h"
#include "rand48.h"
#include "bs.h"
@@ -24,8 +24,8 @@ namespace CBIFY {
v_array<uint32_t> predictions;
CB::label cb_label;
- CSOAA::label cs_label;
- CSOAA::label second_cs_label;
+ COST_SENSITIVE::label cs_label;
+ COST_SENSITIVE::label second_cs_label;
learner* cs;
vw* all;
@@ -185,9 +185,9 @@ namespace CBIFY {
}
}
- void gen_cs_label(vw& all, CB::cb_class& known_cost, example& ec, CSOAA::label& cs_ld, uint32_t label)
+ void gen_cs_label(vw& all, CB::cb_class& known_cost, example& ec, COST_SENSITIVE::label& cs_ld, uint32_t label)
{
- CSOAA::wclass wc;
+ COST_SENSITIVE::wclass wc;
//get cost prediction for this label
wc.x = CB::get_cost_pred<false>(all, &known_cost, ec, label, all.sd->k);
@@ -215,7 +215,7 @@ namespace CBIFY {
{
data.count.push_back(0);
- CSOAA::wclass wc;
+ COST_SENSITIVE::wclass wc;
//get cost prediction for this label
wc.x = FLT_MAX;