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:
authorU-NORTHAMERICA\jcl <jcl@JCL.northamerica.corp.microsoft.com>2013-02-24 06:29:36 +0400
committerU-NORTHAMERICA\jcl <jcl@JCL.northamerica.corp.microsoft.com>2013-02-24 06:29:36 +0400
commitf6b097ee33c70f31136f25999273880240503aaa (patch)
treefd3d1b733cdd47cb3100112cf9fbd233df0f2192 /vowpalwabbit/vwdll.cpp
parent3109ee998b09ee98adb1b2550624c64db9e4da1e (diff)
added add_label() to dll interface
Diffstat (limited to 'vowpalwabbit/vwdll.cpp')
-rw-r--r--vowpalwabbit/vwdll.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/vowpalwabbit/vwdll.cpp b/vowpalwabbit/vwdll.cpp
index 6cd07f50..e86ba9e5 100644
--- a/vowpalwabbit/vwdll.cpp
+++ b/vowpalwabbit/vwdll.cpp
@@ -114,6 +114,12 @@ extern "C"
return VW::hash_feature(*pointer, str, u);
}
+ VW_DLL_MEMBER void VW_CALLING_CONV VW_AddLabel(VW_EXAMPLE e, float label, float weight, float base)
+ {
+ example* ex = static_cast<example*>(e);
+ return VW::add_label(ex, label, weight, base);
+ }
+
VW_DLL_MEMBER float VW_CALLING_CONV VW_Learn(VW_HANDLE handle, VW_EXAMPLE e)
{
vw * pointer = static_cast<vw*>(handle);