diff options
author | Hal Daume III <me@hal3.name> | 2014-04-30 20:06:31 +0400 |
---|---|---|
committer | Hal Daume III <me@hal3.name> | 2014-04-30 20:06:31 +0400 |
commit | 4a2c2872a130f8bb0977c52eeb4ea6de3613ac05 (patch) | |
tree | b44e8606c20ce089cad12416582ca9e5f1e251d2 /vowpalwabbit/multiclass.h | |
parent | a1b944a09549a8042cec2a331553ab2b40373b83 (diff) |
more cleaning up of searn interface
Diffstat (limited to 'vowpalwabbit/multiclass.h')
-rw-r--r-- | vowpalwabbit/multiclass.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vowpalwabbit/multiclass.h b/vowpalwabbit/multiclass.h index 41595831..fb0a76f8 100644 --- a/vowpalwabbit/multiclass.h +++ b/vowpalwabbit/multiclass.h @@ -29,6 +29,8 @@ namespace MULTICLASS inline int example_is_test(example* ec) { return label_is_test((multiclass*)ec->ld); } + inline uint32_t get_example_label(example* ec) + { return ((multiclass*)ec->ld)->label; } } #endif |