// features points to a FEATURE_SPACE[]
 public static extern VwExample ImportExample(VwHandle vw, VwFeatureSpace features, SizeT length);
 public static extern void Set_Weight(VwHandle vw, SizeT index, SizeT offset, float value);
 public static extern SizeT Get_Stride(VwHandle vw);
 public static extern uint HashSpace(VwHandle vw, [MarshalAs(UnmanagedType.LPWStr)] string s);
 public static extern float Learn(VwHandle vw, VwExample example);
 public static extern void FinishExample(VwHandle vw, VwExample example);
Example #7
0
 public static extern IntPtr GetMultilabelPredictions(VwHandle vw, VwExample example, ref SizeT length);
 public static extern void Set_Weight(VwHandle vw, SizeT index, SizeT offset, float value);
 public static extern SizeT Num_Weights(VwHandle vw);
 public static extern float Learn(VwHandle vw, VwExample example);
 public static extern float Get_Weight(VwHandle vw, SizeT index, SizeT offset);
 public static extern uint HashFeature(VwHandle vw, [MarshalAs(UnmanagedType.LPWStr)]string s, uint u);
 public static extern uint HashSpace(VwHandle vw, [MarshalAs(UnmanagedType.LPWStr)]string s);
 public static extern float Predict(VwHandle vw, VwExample example);
 public static extern VwExample ReadExample(VwHandle vw, [MarshalAs(UnmanagedType.LPWStr)] string exampleString);
 public static extern SizeT Get_Stride(VwHandle vw);
 public static extern void EndParser(VwHandle vw);
 public static extern void Finish(VwHandle vw);
 public static extern IntPtr GetMultilabelPredictions(VwHandle vw, VwExample example, ref SizeT length);
 // features points to a FEATURE_SPACE[]
 public static extern VwExample ImportExample(VwHandle vw, VwFeatureSpace features, SizeT length);
 public static extern float Predict(VwHandle vw, VwExample example);
 public static extern VwFeatureSpace ExportExample(VwHandle vw, VwExample example, ref SizeT length);
 public static extern uint HashFeature(VwHandle vw, [MarshalAs(UnmanagedType.LPWStr)] string s, uint u);
 public static extern VwExample ReadExample(VwHandle vw, [MarshalAs(UnmanagedType.LPWStr)]string exampleString);
 public static extern float Get_Weight(VwHandle vw, SizeT index, SizeT offset);
 public static extern void StartParser(VwHandle vw, [MarshalAs(UnmanagedType.Bool)]bool do_init);
 public static extern SizeT Num_Weights(VwHandle vw);
 public static extern void EndParser(VwHandle vw);
 public static extern void Finish(VwHandle vw);
 public static extern VwExample GetExample(VwHandle parser);
 public static extern VwFeatureSpace ExportExample(VwHandle vw, VwExample example, ref SizeT length);
 public static extern void FinishExample(VwHandle vw, VwExample example);
 public static extern void StartParser(VwHandle vw, [MarshalAs(UnmanagedType.Bool)] bool do_init);
 public static extern VwFeature GetFeatures(VwHandle vw, VwExample example, ref SizeT length);
 public static extern VwExample GetExample(VwHandle parser);
Example #36
0
 public static extern void SaveModel(VwHandle vw);
 public static extern VwFeature GetFeatures(VwHandle vw, VwExample example, ref SizeT length);
 public static extern void SaveModel(VwHandle vw);