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:
authorHal Daume III <me@hal3.name>2013-09-25 01:40:21 +0400
committerHal Daume III <me@hal3.name>2013-09-25 01:40:21 +0400
commitfd9e6ca51271f499c41bd04008a95cbfc086defc (patch)
tree9a6eee613bbd245551d7b9d35e41b6b851191287 /vowpalwabbit/vw.h
parented1b671885e3a656e198d36ca060614bfa6688ab (diff)
reverted to johns version so that he will want to pull stuff from me in the future
Diffstat (limited to 'vowpalwabbit/vw.h')
-rw-r--r--vowpalwabbit/vw.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/vowpalwabbit/vw.h b/vowpalwabbit/vw.h
index 6f255858..a3233bf6 100644
--- a/vowpalwabbit/vw.h
+++ b/vowpalwabbit/vw.h
@@ -9,6 +9,7 @@ license as described in the file LICENSE.
#include "global_data.h"
#include "example.h"
#include "hash.h"
+#include "simple_label.h"
namespace VW {
@@ -50,6 +51,7 @@ namespace VW {
void parse_example_label(vw&all, example&ec, string label);
example* new_unused_example(vw& all);
example* get_example(parser* pf);
+ label_data* get_label(example*ec);
void add_constant_feature(vw& all, example*ec);
void add_label(example* ec, float label, float weight = 1, float base = 0);
@@ -96,6 +98,9 @@ namespace VW {
inline uint32_t num_weights(vw& all)
{ return (uint32_t)all.length();}
+ inline uint32_t get_stride(vw& all)
+ { return (uint32_t)all.reg.stride;}
+
}
#endif