diff options
author | Parag Agrawal <paraga@twitter.com> | 2013-09-20 02:09:11 +0400 |
---|---|---|
committer | Parag Agrawal <paraga@twitter.com> | 2013-09-20 02:09:11 +0400 |
commit | 4d73aec516d777ae57e238b450e8c6e3390274aa (patch) | |
tree | 73916cbb2d9a77cc7e3f84f16ec9dbbac7d6493a /vowpalwabbit/gd_mf.cc | |
parent | 792bb79d7ea3ba5140cb266388a75368dd910ef2 (diff) |
Use initial prediction for matrix factorization
Diffstat (limited to 'vowpalwabbit/gd_mf.cc')
-rw-r--r-- | vowpalwabbit/gd_mf.cc | 2 |
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(); |