diff options
author | John Langford <jl@hunch.net> | 2013-04-04 17:10:35 +0400 |
---|---|---|
committer | John Langford <jl@hunch.net> | 2013-04-04 17:10:35 +0400 |
commit | 4fb6068bd0a3db7627108d68c13feaa9a7e2ea84 (patch) | |
tree | 88eb1e523ed58bbf26c0e0b5f50153f18c067b01 /vowpalwabbit/vw.h | |
parent | 089cc060439b4c9aced5a3116e40d46731a16a31 (diff) |
migrate weight_mask to regressor definition
Diffstat (limited to 'vowpalwabbit/vw.h')
-rw-r--r-- | vowpalwabbit/vw.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vowpalwabbit/vw.h b/vowpalwabbit/vw.h index d4325a7e..25d5f480 100644 --- a/vowpalwabbit/vw.h +++ b/vowpalwabbit/vw.h @@ -79,7 +79,7 @@ namespace VW { void finish_example(vw& all, example* ec); inline float get_weight(vw& all, uint32_t index) - { return all.reg.weight_vector[(index * all.stride) & all.weight_mask];} + { return all.reg.weight_vector[(index * all.stride) & all.reg.weight_mask];} inline uint32_t num_weights(vw& all) { return (uint32_t)all.length();} |