Package org.instantsvm
Class SVM
java.lang.Object
org.instantsvm.SVM
- Direct Known Subclasses:
RegressionSVM
-
Field Summary
Modifier and TypeFieldDescriptionprotected svm_model
protected svm_parameter
protected Parameters
protected svm_problem
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble[]
protected double
do_cross_validation
(int nr_fold) double[][]
getCoefs()
svm_node[][]
void
protected void
protected void
mountModel
(svm_model model) protected double[]
void
print()
void
void
void
void
xval
(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)
-