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:
authorParag Agrawal <paraga@twitter.com>2013-09-20 02:09:11 +0400
committerParag Agrawal <paraga@twitter.com>2013-09-20 02:09:11 +0400
commit4d73aec516d777ae57e238b450e8c6e3390274aa (patch)
tree73916cbb2d9a77cc7e3f84f16ec9dbbac7d6493a /vowpalwabbit/gd_mf.cc
parent792bb79d7ea3ba5140cb266388a75368dd910ef2 (diff)
Use initial prediction for matrix factorization
Diffstat (limited to 'vowpalwabbit/gd_mf.cc')
-rw-r--r--vowpalwabbit/gd_mf.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/vowpalwabbit/gd_mf.cc b/vowpalwabbit/gd_mf.cc
index 475cafda..734e26e9 100644
--- a/vowpalwabbit/gd_mf.cc
+++ b/vowpalwabbit/gd_mf.cc
@@ -28,7 +28,7 @@ void mf_local_predict(example* ec, regressor& reg);
float mf_inline_predict(vw& all, example* &ec)
{
- float prediction = 0.0;
+ float prediction = all.p->lp->get_initial(ec->ld);
// clear stored predictions
ec->topic_predictions.erase();