diff options
author | U-NORTHAMERICA\jcl <jcl@JCL.northamerica.corp.microsoft.com> | 2014-04-30 21:18:45 +0400 |
---|---|---|
committer | U-NORTHAMERICA\jcl <jcl@JCL.northamerica.corp.microsoft.com> | 2014-04-30 21:18:45 +0400 |
commit | 682967bd83b2477a697d71f54914e5e184ea2c4c (patch) | |
tree | 3c75ae48b41f03ee295c99af79c9857517d3552d /vowpalwabbit/vwdll.cpp | |
parent | 68f45045136984360b49ebb25b8fc3f6a42b3679 (diff) |
VS2012 typefixes and bugfixes
Diffstat (limited to 'vowpalwabbit/vwdll.cpp')
-rw-r--r-- | vowpalwabbit/vwdll.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vowpalwabbit/vwdll.cpp b/vowpalwabbit/vwdll.cpp index 2a4427fa..923e937e 100644 --- a/vowpalwabbit/vwdll.cpp +++ b/vowpalwabbit/vwdll.cpp @@ -5,6 +5,7 @@ #include "vwdll.h" #include "parser.h" +#include "simple_label.h" #include "parse_args.h" #include "vw.h" @@ -161,7 +162,8 @@ extern "C" vw * pointer = static_cast<vw*>(handle); example * ex = static_cast<example*>(e); pointer->learn(ex); - return ex->final_prediction; + label_data* l = static_cast<label_data*>(ex->ld); + return l->prediction; } VW_DLL_MEMBER float VW_CALLING_CONV VW_Get_Weight(VW_HANDLE handle, size_t index, size_t offset) |