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:17:55 +0400
committerJohn Langford <jl@hunch.net>2013-04-04 17:17:55 +0400
commit069210c045f28c9a22b89967a642037c136d117c (patch)
tree20e60e049de079e12c1e6d660c399ad879699c5a /vowpalwabbit/vw.h
parent4fb6068bd0a3db7627108d68c13feaa9a7e2ea84 (diff)
migrate stride to regressor datastructure
Diffstat (limited to 'vowpalwabbit/vw.h')
-rw-r--r--vowpalwabbit/vw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vowpalwabbit/vw.h b/vowpalwabbit/vw.h
index 25d5f480..4b628895 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.reg.weight_mask];}
+ { return all.reg.weight_vector[(index * all.reg.stride) & all.reg.weight_mask];}
inline uint32_t num_weights(vw& all)
{ return (uint32_t)all.length();}