diff options
author | niruc <niruc@NIRUC-M6600.redmond.corp.microsoft.com> | 2013-04-05 01:03:48 +0400 |
---|---|---|
committer | niruc <niruc@NIRUC-M6600.redmond.corp.microsoft.com> | 2013-04-05 01:03:48 +0400 |
commit | 605dbf1f7a418a41197336aa296d6d27be1f935d (patch) | |
tree | 55f284c6c4c7938f6c2bdf4f57526ab780bbea61 /vowpalwabbit/vw.h | |
parent | bf1d9cf00d6a0ddeeeac78cbf43548ec57b3ab29 (diff) |
added export_example to library exposed to c#
Diffstat (limited to 'vowpalwabbit/vw.h')
-rw-r--r-- | vowpalwabbit/vw.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vowpalwabbit/vw.h b/vowpalwabbit/vw.h index d4325a7e..a8dcdcb2 100644 --- a/vowpalwabbit/vw.h +++ b/vowpalwabbit/vw.h @@ -78,6 +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); + inline float get_weight(vw& all, uint32_t index) { return all.reg.weight_vector[(index * all.stride) & all.weight_mask];} |