From c95619bd2c56b346fe317b8fa134ee1c5b7c828e Mon Sep 17 00:00:00 2001 From: John Langford Date: Tue, 24 Dec 2013 14:46:23 -0500 Subject: initial cbify and a bugfix --- cs_test/VowpalWabbitInterface.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cs_test') 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); -- cgit v1.2.3