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@nyclamp.(none)>2013-11-04 21:00:01 +0400
committerJohn Langford <jl@nyclamp.(none)>2013-11-04 21:00:01 +0400
commit5fbefcc27257b3386fd93b3983aa799c60704f47 (patch)
treeaa5a07922dcbbc1a4f03b0622a7b5a75524da584 /vowpalwabbit/sender.cc
parent4397256c1bafab983d18e7c05aa4efc71ab4188d (diff)
minor simplification
Diffstat (limited to 'vowpalwabbit/sender.cc')
-rw-r--r--vowpalwabbit/sender.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/vowpalwabbit/sender.cc b/vowpalwabbit/sender.cc
index 71b347ec..f0f5e256 100644
--- a/vowpalwabbit/sender.cc
+++ b/vowpalwabbit/sender.cc
@@ -104,6 +104,8 @@ void end_examples(void* d)
delete s->buf;
}
+ void save_load(void*, io_buf& io, bool read, bool text){}
+
learner* setup(vw& all, po::variables_map& vm, vector<string> pairs)
{
sender* s = (sender*)calloc(1,sizeof(sender));
@@ -117,7 +119,7 @@ void end_examples(void* d)
s->all = &all;
s->delay_ring = (example**) calloc(all.p->ring_size, sizeof(example*));
- learner* l = new learner(s,learn);
+ learner* l = new learner(s,learn, save_load, 1);
l->set_finish(finish);
l->set_finish_example(finish_example);
l->set_end_examples(end_examples);