The number of samples for expression learning is now 1000 per expression, because gathering the maximum number of samples is no longer enforced.
This commit is contained in:
parent
e83e965290
commit
443a7ee88e
3 changed files with 7 additions and 7 deletions
|
|
@ -12,7 +12,7 @@ namespace OpenSee {
|
|||
public class SVMModel {
|
||||
#region DllImport
|
||||
[DllImport("SVMModel", CallingConvention = CallingConvention.Cdecl)]
|
||||
private static extern System.IntPtr trainModel(float[] features, float[] labels, int rows, int cols);
|
||||
private static extern System.IntPtr trainModel(float[] features, float[] labels, int rows, int cols, float C);
|
||||
|
||||
[DllImport("SVMModel", CallingConvention = CallingConvention.Cdecl)]
|
||||
private static extern void predict(System.IntPtr model, float[] features, [Out] float[] predictions, int rows);
|
||||
|
|
@ -143,7 +143,7 @@ public class SVMModel {
|
|||
|
||||
maxClasses = max + 1;
|
||||
this.cols = cols;
|
||||
model = trainModel(features, labels, rows, cols);
|
||||
model = trainModel(features, labels, rows, cols, 32f);
|
||||
haveModel = true;
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue