E1
- the class of the data objects used in the modelpublic static class KernelPegasosEngine.Conf<E1> extends java.lang.Object implements OnlineEngine.Conf<E1>
KernelPegasosEngine
Constructor and Description |
---|
Conf(double lambda,
double hingeParameter,
Kernel<E1> k)
Creates a Conf object that can create objects of
KernelPegasosEngine |
Modifier and Type | Method and Description |
---|---|
void |
cacheMatrix(java.util.List<DataObject<E1>> trainingData)
Creates a Cache based on a matrix stored memory for Kernels
This type of cache occupies less memory and it provides fast access,
the draw back is that to create this matrix, the method computes
the kernel for every pair of data instance
|
OnlineEngine<E1> |
createEngine()
Creates an OnlineEngine based on the parameters provided when the
Conf object was created
|
public Conf(double lambda, double hingeParameter, Kernel<E1> k)
KernelPegasosEngine
lambda
- a double containing the lambda parameter of the SVM
model to be createdhingeParameter
- parameter that forces more or less precision.
The recommended and the usual is to set this parameter to zerok
- the kernel used to compare pairs of data instancespublic OnlineEngine<E1> createEngine()
OnlineEngine.Conf
createEngine
in interface OnlineEngine.Conf<E1>
public void cacheMatrix(java.util.List<DataObject<E1>> trainingData)
OnlineEngine.Conf
cacheMatrix
in interface OnlineEngine.Conf<E1>
trainingData
- the training data instances used to create the
matrix