Package org.instantsvm
Class SVM
java.lang.Object
org.instantsvm.SVM
- Direct Known Subclasses:
RegressionSVM
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected svm_modelprotected svm_parameterprotected Parametersprotected svm_problem -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[]protected doubledo_cross_validation(int nr_fold) double[][]getCoefs()svm_node[][]voidprotected voidprotected voidmountModel(svm_model model) protected double[]voidprint()voidvoidvoidvoidxval(Vector<svm_node[]> vx, Vector<Double> vy, Parameters parameters, int nrfold, double cMin, double cMax, int cSteps, double gMin, double gMax, int gSteps)
-
Field Details
-
param
-
prob
-
model
-
parameters
-
-
Constructor Details
-
SVM
public SVM() -
SVM
- Throws:
IOException
-
SVM
-
-
Method Details
-
train
-
train
-
xval
public XValResult xval(Vector<svm_node[]> vx, Vector<Double> vy, Parameters parameters, int nrfold, double cMin, double cMax, int cSteps, double gMin, double gMax, int gSteps) -
apply
-
getParameters
-
getSupportVectors
-
getCoefs
public double[][] getCoefs() -
save
- Throws:
IOException
-
save
- Throws:
IOException
-
load
- Throws:
IOException
-
print
public void print() -
getDefaultParameters
-
mountModel
-
load
-
predict
-
do_cross_validation
protected double do_cross_validation(int nr_fold)
-