diff options
author | John Langford <jl@hunch.net> | 2014-03-27 01:57:43 +0400 |
---|---|---|
committer | John Langford <jl@hunch.net> | 2014-03-27 01:57:43 +0400 |
commit | c7da88a24d53e2189e807c65ed562034c21f7f4e (patch) | |
tree | 606120afba1dbba488b7615302d8d993493aac8f /vowpalwabbit/cbify.cc | |
parent | 5da6504dd52ca3bb6021d64e31e4a05610d74d41 (diff) |
factor cb parsing out of cb algorithms
Diffstat (limited to 'vowpalwabbit/cbify.cc')
-rw-r--r-- | vowpalwabbit/cbify.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vowpalwabbit/cbify.cc b/vowpalwabbit/cbify.cc index c5675292..442774e9 100644 --- a/vowpalwabbit/cbify.cc +++ b/vowpalwabbit/cbify.cc @@ -3,6 +3,7 @@ #include "vw.h" #include "cost_sensitive.h" #include "cb.h" +#include "cb_algs.h" #include "rand48.h" #include "bs.h" @@ -190,7 +191,7 @@ namespace CBIFY { 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); + wc.x = CB_ALGS::get_cost_pred<false>(all, &known_cost, ec, label, all.sd->k); wc.weight_index = label; wc.partial_prediction = 0.; wc.wap_value = 0.; |