diff options
author | John Langford <jl@hunch.net> | 2013-04-08 01:23:53 +0400 |
---|---|---|
committer | John Langford <jl@hunch.net> | 2013-04-08 01:23:53 +0400 |
commit | 373abb1c873525f847835c15dcd5812d044faa1c (patch) | |
tree | ab294163d4558e562216b490810f229f3d4034f7 /vowpalwabbit/vw.h | |
parent | 1a141ff9afcaf09b5fdef5f16d603df4109e248f (diff) |
fix export_example bug
Diffstat (limited to 'vowpalwabbit/vw.h')
-rw-r--r-- | vowpalwabbit/vw.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/vowpalwabbit/vw.h b/vowpalwabbit/vw.h index edf179f2..65c45b52 100644 --- a/vowpalwabbit/vw.h +++ b/vowpalwabbit/vw.h @@ -78,9 +78,9 @@ namespace VW { //notify VW that you are done with the example. void finish_example(vw& all, example* ec); - primitive_feature_space* export_example(void* e, size_t& len); - void releaseFeatureSpace(primitive_feature_space* features, size_t len); - + primitive_feature_space* export_example(vw& all, example* e, size_t& len); + void releaseFeatureSpace(primitive_feature_space* features, size_t len); + inline float get_weight(vw& all, uint32_t index) { return all.reg.weight_vector[(index * all.reg.stride) & all.reg.weight_mask];} @@ -88,5 +88,4 @@ namespace VW { { return (uint32_t)all.length();} } - #endif |