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)>2014-05-02 19:29:54 +0400
committerJohn Langford <jl@nyclamp.(none)>2014-05-02 19:29:54 +0400
commit10776f942eb78e894cb57b3e2b34968278fb3cc5 (patch)
treebf5ee88e10cbd8034704a5a040dee3d2470b2b0e /vowpalwabbit/gd_mf.cc
parent663819314cc2486a076ac6dee080e4e775764f69 (diff)
giant refactor of parse_args
Diffstat (limited to 'vowpalwabbit/gd_mf.cc')
-rw-r--r--vowpalwabbit/gd_mf.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/vowpalwabbit/gd_mf.cc b/vowpalwabbit/gd_mf.cc
index 4af0595c..3f1ca331 100644
--- a/vowpalwabbit/gd_mf.cc
+++ b/vowpalwabbit/gd_mf.cc
@@ -327,7 +327,8 @@ void mf_train(vw& all, example& ec, float update)
all.sd->weighted_unlabeled_examples = 1.f;
all.initial_t = 1.f;
}
-
+ all.eta *= powf((float)(all.sd->t), all.power_t);
+
learner* l = new learner(data, 1 << all.reg.stride_shift);
l->set_learn<gdmf, learn>();
l->set_predict<gdmf, predict>();