diff options
author | Jake Hofman <jhofman@gmail.com> | 2014-01-01 01:26:28 +0400 |
---|---|---|
committer | Jake Hofman <jhofman@gmail.com> | 2014-01-01 01:26:28 +0400 |
commit | 4bca4ce57e90fbd9af8f50f0fba994244b5ae2e7 (patch) | |
tree | 31f22c5c887bd04b76ad4ff2a2705b6563af71ed /vowpalwabbit/gd_mf.cc | |
parent | 64eafee7da974529dc527ddb026bc4d76bc47832 (diff) |
predict = test_only learn for base learners
Diffstat (limited to 'vowpalwabbit/gd_mf.cc')
-rw-r--r-- | vowpalwabbit/gd_mf.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vowpalwabbit/gd_mf.cc b/vowpalwabbit/gd_mf.cc index 386ac0f1..4edcb8ca 100644 --- a/vowpalwabbit/gd_mf.cc +++ b/vowpalwabbit/gd_mf.cc @@ -293,6 +293,10 @@ void end_pass(void* d) // placeholder void predict(void* d, learner& base, example* ec) { + bool test_only = ec->test_only; + ec->test_only = true; + learn(d, base, ec); + ec->test_only = test_only; } learner* setup(vw& all) |