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 double
cache_size
protected double
eps
protected static byte
MONE
protected static byte
ONE
protected boolean
shrinking
-
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 Logging
getLogger()
protected static int
groupClasses(DataSet x, int[][] group_ret, int[] perm)
static int[]
makeFolds(int l, int nr_fold)
static boolean
nonzero(double v)
void
set_weights(double Cp, double Cn)
static int[]
shuffledIndex(int[] perm, int l)
Build a shuffled index array.protected abstract Solver.SolutionInfo
solve(DataSet x)
static int[]
stratifiedFolds(DataSet x, int nr_fold, int[] perm)
protected Solver.SolutionInfo
train_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()
-
-