|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectSciLib.Neuro.SVM.SVM
SciLib.Neuro.SVM.OAOSVM
public class OAOSVM
| Field Summary |
|---|
| Fields inherited from class SciLib.Neuro.SVM.SVM |
|---|
alpha, B, b_low, b_up, binary, C, eps, error_cache, file, GACV1, i_low, i_up, JHB, K, N, patterns, sparse, sv, svIndex, targets, tolerance |
| Constructor Summary | |
|---|---|
OAOSVM(int m,
FileHandler file,
Kernel K)
Constructor |
|
| Method Summary | |
|---|---|
void |
crossValidation(int kf,
double startLog2C,
int cs,
double startLambda,
int ls,
double a,
double b)
cross-validation |
BSVM |
getKClassifier(int k)
Get a specific classifier |
void |
LOOValidation(int type,
double startLog2C,
int cs,
double startLambda,
int ls,
double a,
double b)
LOO-validation |
void |
setC(double c)
Set the value of C |
void |
setKernel(Kernel k)
Set the spesific kernel |
double |
testing(FileHandler testFile,
double a,
double b)
testing svm with the data scaled between a, b ( a < b ) |
void |
training(java.lang.String alphaFile,
double a,
double b)
training svm with the data scaled between a, b ( a < b ) |
| Methods inherited from class SciLib.Neuro.SVM.SVM |
|---|
computeB, f, f, getAlpha, getB, getC, getEpsi, getFile, getKernel, getNoOfSV, getPatterns, getSV, getSVIndex, getTargets, getTolerance, initialize, initiateParameter, isBinary, isInI0I1I2, isInI0I3I4, isInI1I2, isInI3I4, isSparse, LOOValidation, makeTargets, misclassified, readSVs, setB, setEpsi, setFile, setN, setTolerance, testing, testing, testing, training, writeReport, writeResultToFile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface SciLib.Neuro.SVM.SMO |
|---|
LOOValidation, misclassified, testing, testing, testing, training |
| Constructor Detail |
|---|
public OAOSVM(int m,
FileHandler file,
Kernel K)
m - the number of classes, intfile - the file that handles training data, FileHandlerK - the kernel of SVM, Kernel| Method Detail |
|---|
public BSVM getKClassifier(int k)
k - the index of the classifier, intpublic void setC(double c)
setC in class SVMc - the value of C, doublepublic void setKernel(Kernel k)
setKernel in class SVMk - the kernel, Kernel
public void training(java.lang.String alphaFile,
double a,
double b)
training in interface SMOtraining in class SVMalphaFile - fileName for store the support vectorsa - the lower bound of scaled datab - the upper bound of scaled data
public double testing(FileHandler testFile,
double a,
double b)
testing in interface SMOtesting in class SVMalphaFile - fileName for store the support vectorsa - the lower bound of scaled datab - the upper bound of scaled data
public void LOOValidation(int type,
double startLog2C,
int cs,
double startLambda,
int ls,
double a,
double b)
LOOValidation in interface SMOLOOValidation in class SVMtype - method of LOO validation, constant JHB, GACV1. etc.startLog2C - log2 of the start value of C, doublecs - the size of the set that contains all C, intstartLambda - log2 of the start value of lambda, doublels - the size of the set that contains all lambdas, inta - the lower bound of scaled datab - the upper bound of scaled data
public void crossValidation(int kf,
double startLog2C,
int cs,
double startLambda,
int ls,
double a,
double b)
crossValidation in interface SMOcrossValidation in class SVMk - k-fold cross validation k > 1startLog2C - log2 of the start value of C, doublecs - the size of the set that contains all C, intstartLambda - log2 of the start value of lambda, doublels - the size of the set that contains all lambdas, inta - the lower bound of scaled datab - the upper bound of scaled data
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||