diff options
author | unknown <niruc@NIRUC-M6600.redmond.corp.microsoft.com> | 2013-04-02 21:30:36 +0400 |
---|---|---|
committer | unknown <niruc@NIRUC-M6600.redmond.corp.microsoft.com> | 2013-04-02 21:30:36 +0400 |
commit | e23f4298ae1a1b559ac91b93325c8c966188ea8a (patch) | |
tree | 1fd5211255e43eca5f0949e9d682b015696775e5 /vowpalwabbit/vw.h | |
parent | 11cb4f2f6c799a33e88df1152e3c03672ba37d95 (diff) | |
parent | 9762edc870af2ea15a40bc23673398f3995fc94e (diff) |
fix conflicts
Diffstat (limited to 'vowpalwabbit/vw.h')
-rw-r--r-- | vowpalwabbit/vw.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vowpalwabbit/vw.h b/vowpalwabbit/vw.h index 4f185464..d4325a7e 100644 --- a/vowpalwabbit/vw.h +++ b/vowpalwabbit/vw.h @@ -78,6 +78,12 @@ namespace VW { //notify VW that you are done with the example. 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];} + + inline uint32_t num_weights(vw& all) + { return (uint32_t)all.length();} } + #endif |