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>2014-04-30 20:06:31 +0400
committerHal Daume III <me@hal3.name>2014-04-30 20:06:31 +0400
commit4a2c2872a130f8bb0977c52eeb4ea6de3613ac05 (patch)
treeb44e8606c20ce089cad12416582ca9e5f1e251d2 /vowpalwabbit/multiclass.h
parenta1b944a09549a8042cec2a331553ab2b40373b83 (diff)
more cleaning up of searn interface
Diffstat (limited to 'vowpalwabbit/multiclass.h')
-rw-r--r--vowpalwabbit/multiclass.h2
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