diff options
author | John Langford <jl@nyclamp.(none)> | 2013-10-29 00:19:40 +0400 |
---|---|---|
committer | John Langford <jl@nyclamp.(none)> | 2013-10-29 00:19:40 +0400 |
commit | 0328182cb55ae073826be22279388c290e0db369 (patch) | |
tree | 6ac9199999661a928b1484100f21019f3505eeb0 /vowpalwabbit/learner.cc | |
parent | 4df9a73aac60863aa1dc4de024aabb608a847ca3 (diff) |
removed several drivers
Diffstat (limited to 'vowpalwabbit/learner.cc')
-rw-r--r-- | vowpalwabbit/learner.cc | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/vowpalwabbit/learner.cc b/vowpalwabbit/learner.cc index ded0baf1..739526c6 100644 --- a/vowpalwabbit/learner.cc +++ b/vowpalwabbit/learner.cc @@ -4,21 +4,10 @@ namespace LEARNER { - void generic_sl(void*, io_buf&, bool, bool) - { cout << "calling generic_save_load";} - void generic_learner(void* data, example*) - { cout << "calling generic learner\n";} - void generic_end_pass(void* data) - { cout << "calling generic end_pass\n";} - void generic_end_examples(void* data) - { cout << "calling generic end_examples\n";} - void generic_finish(void* data) - { cout << "calling generic finish\n";} - void generic_driver(vw* all, void* data) { example* ec = NULL; - + while ( true ) { if(all->early_terminate) @@ -29,12 +18,13 @@ namespace LEARNER else if ((ec = VW::get_example(all->p)) != NULL)//semiblocking operation. { all->l.learn(ec); - return_simple_example(*all, ec); + all->l.finish_example(*all, ec); } else if (parser_done(all->p)) - return; - else - ;//busywait when we have predicted on all examples but not yet trained on all. + { + all->l.end_examples(); + return; + } } } } |