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:
authorunknown <niruc@NIRUC-M6600.redmond.corp.microsoft.com>2013-04-02 21:30:36 +0400
committerunknown <niruc@NIRUC-M6600.redmond.corp.microsoft.com>2013-04-02 21:30:36 +0400
commite23f4298ae1a1b559ac91b93325c8c966188ea8a (patch)
tree1fd5211255e43eca5f0949e9d682b015696775e5 /vowpalwabbit/vwdll.cpp
parent11cb4f2f6c799a33e88df1152e3c03672ba37d95 (diff)
parent9762edc870af2ea15a40bc23673398f3995fc94e (diff)
fix conflicts
Diffstat (limited to 'vowpalwabbit/vwdll.cpp')
-rw-r--r--vowpalwabbit/vwdll.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/vowpalwabbit/vwdll.cpp b/vowpalwabbit/vwdll.cpp
index 5e0b6d2f..626c8efe 100644
--- a/vowpalwabbit/vwdll.cpp
+++ b/vowpalwabbit/vwdll.cpp
@@ -146,4 +146,16 @@ extern "C"
pointer->learn(ex);
return ex->final_prediction;
}
+
+ VW_DLL_MEMBER float VW_CALLING_CONV VW_Get_Weight(VW_HANDLE handle, uint32_t index)
+ {
+ vw* pointer = static_cast<vw*>(handle);
+ return VW::get_weight(*pointer, index);
+ }
+
+ VW_DLL_MEMBER uint32_t VW_CALLING_CONV VW_Num_Weights(VW_HANDLE handle)
+ {
+ vw* pointer = static_cast<vw*>(handle);
+ return VW::num_weights(*pointer);
+ }
} \ No newline at end of file