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>2014-04-30 21:18:45 +0400
committerU-NORTHAMERICA\jcl <jcl@JCL.northamerica.corp.microsoft.com>2014-04-30 21:18:45 +0400
commit682967bd83b2477a697d71f54914e5e184ea2c4c (patch)
tree3c75ae48b41f03ee295c99af79c9857517d3552d /vowpalwabbit/vwdll.cpp
parent68f45045136984360b49ebb25b8fc3f6a42b3679 (diff)
VS2012 typefixes and bugfixes
Diffstat (limited to 'vowpalwabbit/vwdll.cpp')
-rw-r--r--vowpalwabbit/vwdll.cpp4
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)