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@hunch.net>2013-04-04 17:10:35 +0400
committerJohn Langford <jl@hunch.net>2013-04-04 17:10:35 +0400
commit4fb6068bd0a3db7627108d68c13feaa9a7e2ea84 (patch)
tree88eb1e523ed58bbf26c0e0b5f50153f18c067b01 /vowpalwabbit/gd_mf.cc
parent089cc060439b4c9aced5a3116e40d46731a16a31 (diff)
migrate weight_mask to regressor definition
Diffstat (limited to 'vowpalwabbit/gd_mf.cc')
-rw-r--r--vowpalwabbit/gd_mf.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/vowpalwabbit/gd_mf.cc b/vowpalwabbit/gd_mf.cc
index a9c6920d..b0483ce8 100644
--- a/vowpalwabbit/gd_mf.cc
+++ b/vowpalwabbit/gd_mf.cc
@@ -82,7 +82,7 @@ float mf_inline_predict(vw& all, example* &ec)
void mf_inline_train(vw& all, example* &ec, float update)
{
weight* weights = all.reg.weight_vector;
- size_t mask = all.weight_mask;
+ size_t mask = all.reg.weight_mask;
label_data* ld = (label_data*)ec->ld;
// use final prediction to get update size
@@ -132,7 +132,7 @@ void mf_inline_train(vw& all, example* &ec, float update)
void mf_print_offset_features(vw& all, example* &ec, size_t offset)
{
weight* weights = all.reg.weight_vector;
- size_t mask = all.weight_mask;
+ size_t mask = all.reg.weight_mask;
for (unsigned char* i = ec->indices.begin; i != ec->indices.end; i++)
if (ec->audit_features[*i].begin != ec->audit_features[*i].end)
for (audit_data *f = ec->audit_features[*i].begin; f != ec->audit_features[*i].end; f++)