diff options
author | John Langford <jl@nyclamp.(none)> | 2014-01-08 20:04:26 +0400 |
---|---|---|
committer | John Langford <jl@nyclamp.(none)> | 2014-01-08 20:04:26 +0400 |
commit | 9be3f55aa15c22b8279e801f7a69eeba1ba2644b (patch) | |
tree | 0c7676eb3718e0d34f9b6ad99c849eb0e15b166f /vowpalwabbit/cbify.cc | |
parent | 18c929e512dd809f57ff4250219e61d07a2d9699 (diff) |
more void* removal
Diffstat (limited to 'vowpalwabbit/cbify.cc')
-rw-r--r-- | vowpalwabbit/cbify.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/vowpalwabbit/cbify.cc b/vowpalwabbit/cbify.cc index 1a840bf5..2bd82348 100644 --- a/vowpalwabbit/cbify.cc +++ b/vowpalwabbit/cbify.cc @@ -124,6 +124,12 @@ namespace CBIFY { //Use cost sensitive oracle to cover actions to form distribution. } + void finish_example(vw& all, cbify*, example* ec) + { + OAA::output_example(all, ec); + VW::finish_example(all, ec); + } + learner* setup(vw& all, std::vector<std::string>&opts, po::variables_map& vm, po::variables_map& vm_file) {//parse and set arguments cbify* data = (cbify*)calloc(1, sizeof(cbify)); @@ -175,7 +181,7 @@ namespace CBIFY { data->epsilon = vm["greedy"].as<float>(); l = new learner(data, predict_or_learn_greedy<true>, predict_or_learn_greedy<false>, all.l, 1); } - l->set_finish_example(OAA::finish_example); + l->set_finish_example<cbify,finish_example>(); cout << "epsilon = " << data->epsilon << endl; |