Package org.instantsvm
Class SVM
java.lang.Object
org.instantsvm.SVM
- Direct Known Subclasses:
- RegressionSVM
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected svm_modelprotected svm_parameterprotected Parametersprotected svm_problem
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
SVMpublic SVM()
- 
SVM- Throws:
- IOException
 
- 
SVM
 
- 
- 
Method Details- 
train
- 
train
- 
xvalpublic 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
- 
getCoefspublic double[][] getCoefs()
- 
save- Throws:
- IOException
 
- 
save- Throws:
- IOException
 
- 
load- Throws:
- IOException
 
- 
printpublic void print()
- 
getDefaultParameters
- 
mountModel
- 
load
- 
predict
- 
do_cross_validationprotected double do_cross_validation(int nr_fold) 
 
-