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-01 23:22:23 +0400
committerJohn Langford <jl@nyclamp.(none)>2013-11-01 23:22:23 +0400
commit4997674c7a45c1fd5864d37e9430cafad2934954 (patch)
tree3d5f1694502a08833f01d3ead4b44c6886efda5c /vowpalwabbit/gd_mf.cc
parent72911d8b82f70c54e5e3ad862a79da17e54d9b7c (diff)
reductions now nonuniform
Diffstat (limited to 'vowpalwabbit/gd_mf.cc')
-rw-r--r--vowpalwabbit/gd_mf.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/vowpalwabbit/gd_mf.cc b/vowpalwabbit/gd_mf.cc
index c95a6a8e..4f043a4a 100644
--- a/vowpalwabbit/gd_mf.cc
+++ b/vowpalwabbit/gd_mf.cc
@@ -290,12 +290,13 @@ void end_pass(void* d)
mf_inline_train(*all, ec, ec->eta_round);
}
- learner setup(vw& all)
+ learner* setup(vw& all)
{
gdmf* data = (gdmf*)calloc(1,sizeof(gdmf));
data->all = &all;
- learner l(data,learn,save_load);
- l.set_end_pass(end_pass);
+ learner* l = new learner(data,learn);
+ l->set_save_load(save_load);
+ l->set_end_pass(end_pass);
return l;
}
}