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:
authorJohn Langford <jl@hunch.net>2013-12-24 23:46:23 +0400
committerJohn Langford <jl@hunch.net>2013-12-24 23:46:23 +0400
commitc95619bd2c56b346fe317b8fa134ee1c5b7c828e (patch)
treefbb31b1a16c318c272950188733acb6e02d91502 /cs_test
parentcc7db28db06560a45bf4c61c2b936a02b3697fa8 (diff)
initial cbify and a bugfix
Diffstat (limited to 'cs_test')
-rw-r--r--cs_test/VowpalWabbitInterface.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/cs_test/VowpalWabbitInterface.cs b/cs_test/VowpalWabbitInterface.cs
index f42aa576..3c9ae27c 100644
--- a/cs_test/VowpalWabbitInterface.cs
+++ b/cs_test/VowpalWabbitInterface.cs
@@ -115,6 +115,9 @@ namespace Microsoft.Research.MachineLearning
[DllImport("libvw.dll", EntryPoint = "VW_Get_Weight", CallingConvention = CallingConvention.StdCall)]
public static extern float Get_Weight(IntPtr vw, UInt32 index, UInt32 offset);
+ [DllImport("libvw.dll", EntryPoint = "VW_Set_Weight", CallingConvention = CallingConvention.StdCall)]
+ public static extern void Set_Weight(IntPtr vw, UInt32 index, UInt32 offset, float value);
+
[DllImport("libvw.dll", EntryPoint = "VW_Num_Weights", CallingConvention = CallingConvention.StdCall)]
public static extern UInt32 Num_Weights(IntPtr vw);