diff options
author | John Langford <jl@hunch.net> | 2013-09-04 20:49:50 +0400 |
---|---|---|
committer | John Langford <jl@hunch.net> | 2013-09-04 20:49:50 +0400 |
commit | a437860a3dc75b972b65dceeb626ac530378ed3a (patch) | |
tree | 87f035c80743c036673680cefb859473cf23bb89 /vowpalwabbit/gd_mf.cc | |
parent | 8f3fa3d1b0a9f2faa7f999bb33643f924dd7dc69 (diff) |
fix reference
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 b36f034e..475cafda 100644 --- a/vowpalwabbit/gd_mf.cc +++ b/vowpalwabbit/gd_mf.cc @@ -149,7 +149,7 @@ void mf_print_offset_features(vw& all, example* &ec, size_t offset) size_t index = (f->weight_index + offset) & all.reg.weight_mask; cout << "\tConstant:"; - cout << (index/stride & all.parse_mask) << ':' << f->x; + cout << (index/all.reg.stride & all.parse_mask) << ':' << f->x; cout << ':' << trunc_weight(weights[index], (float)all.sd->gravity) * (float)all.sd->contraction; } for (vector<string>::iterator i = all.pairs.begin(); i != all.pairs.end();i++) |