diff options
author | John Langford <jl@nyclamp.(none)> | 2013-11-01 23:22:23 +0400 |
---|---|---|
committer | John Langford <jl@nyclamp.(none)> | 2013-11-01 23:22:23 +0400 |
commit | 4997674c7a45c1fd5864d37e9430cafad2934954 (patch) | |
tree | 3d5f1694502a08833f01d3ead4b44c6886efda5c /vowpalwabbit/learner.cc | |
parent | 72911d8b82f70c54e5e3ad862a79da17e54d9b7c (diff) |
reductions now nonuniform
Diffstat (limited to 'vowpalwabbit/learner.cc')
-rw-r--r-- | vowpalwabbit/learner.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/vowpalwabbit/learner.cc b/vowpalwabbit/learner.cc index 8a99387a..a07336f4 100644 --- a/vowpalwabbit/learner.cc +++ b/vowpalwabbit/learner.cc @@ -10,7 +10,7 @@ namespace LEARNER { example* ec = NULL; - all->l.init_driver(); + all->l->init_driver(); while ( true ) { if(all->early_terminate) @@ -22,12 +22,12 @@ namespace LEARNER { if (ec->indices.size() > 1) // one nonconstant feature. { - all->l.learn(ec); - all->l.finish_example(*all, ec); + all->l->learn(ec); + all->l->finish_example(*all, ec); } else if (ec->end_pass) { - all->l.end_pass(); + all->l->end_pass(); VW::finish_example(*all,ec); } else if (ec->tag.size() >= 4 && !strncmp((const char*) ec->tag.begin, "save", 4)) @@ -45,13 +45,13 @@ namespace LEARNER } else { - all->l.learn(ec); - all->l.finish_example(*all, ec); + all->l->learn(ec); + all->l->finish_example(*all, ec); } } else if (parser_done(all->p)) { - all->l.end_examples(); + all->l->end_examples(); return; } } |