Package elki.svm
Class AbstractSingleSVM
- java.lang.Object
-
- elki.svm.AbstractSingleSVM
-
- Direct Known Subclasses:
AbstractSVC,AbstractSVR
public abstract class AbstractSingleSVM extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected doublecache_sizeprotected doubleepsprotected static byteMONEprotected static byteONEprotected booleanshrinking
-
Constructor Summary
Constructors Constructor Description AbstractSingleSVM(double eps, boolean shrinking, double cache_size)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract LogginggetLogger()protected static intgroupClasses(DataSet x, int[][] group_ret, int[] perm)static int[]makeFolds(int l, int nr_fold)static booleannonzero(double v)voidset_weights(double Cp, double Cn)static int[]shuffledIndex(int[] perm, int l)Build a shuffled index array.protected abstract Solver.SolutionInfosolve(DataSet x)static int[]stratifiedFolds(DataSet x, int nr_fold, int[] perm)protected Solver.SolutionInfotrain_one(DataSet x)
-
-
-
Field Detail
-
ONE
protected static final byte ONE
- See Also:
- Constant Field Values
-
MONE
protected static final byte MONE
- See Also:
- Constant Field Values
-
eps
protected double eps
-
shrinking
protected boolean shrinking
-
cache_size
protected double cache_size
-
-
Method Detail
-
solve
protected abstract Solver.SolutionInfo solve(DataSet x)
-
train_one
protected Solver.SolutionInfo train_one(DataSet x)
-
set_weights
public void set_weights(double Cp, double Cn)
-
shuffledIndex
public static int[] shuffledIndex(int[] perm, int l)Build a shuffled index array.- Parameters:
perm- Array storing the permutationl- Size
-
makeFolds
public static int[] makeFolds(int l, int nr_fold)
-
stratifiedFolds
public static int[] stratifiedFolds(DataSet x, int nr_fold, int[] perm)
-
groupClasses
protected static int groupClasses(DataSet x, int[][] group_ret, int[] perm)
-
nonzero
public static boolean nonzero(double v)
-
getLogger
protected abstract Logging getLogger()
-
-