diff options
author | John Langford <jl@hunch.net> | 2013-02-23 03:08:28 +0400 |
---|---|---|
committer | John Langford <jl@hunch.net> | 2013-02-23 03:08:28 +0400 |
commit | 0cc5651904de36119214a007d7002a43d0b05f43 (patch) | |
tree | 25303808e8feb9d4bc49091a8c7d31d388c8def1 /vowpalwabbit/vw.h | |
parent | 932f2e48060ccb483a1793c944c887d2fce10ee5 (diff) |
added add_label() to library interface
Diffstat (limited to 'vowpalwabbit/vw.h')
-rw-r--r-- | vowpalwabbit/vw.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vowpalwabbit/vw.h b/vowpalwabbit/vw.h index b3d5731a..59566f2b 100644 --- a/vowpalwabbit/vw.h +++ b/vowpalwabbit/vw.h @@ -74,6 +74,7 @@ namespace VW { example* new_unused_example(vw& all); void add_constant_feature(vw& all, example*ec); + void add_label(example* ec, float label, float weight = 1, float base = 0); //notify VW that you are done with the example. void finish_example(vw& all, example* ec); } |