diff options
Diffstat (limited to 'cs_test')
-rw-r--r-- | cs_test/VowpalWabbitInterface.cs | 3 |
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);
|