public class PolynomialKernel extends Kernel<java.util.Map<java.lang.Long,java.lang.Double>>
Constructor and Description |
---|
PolynomialKernel(int degree) |
PolynomialKernel(int degree,
double gamma,
double coef) |
Modifier and Type | Method and Description |
---|---|
DataObject<java.util.Map<java.lang.Long,java.lang.Double>> |
convertVector(DataObject<java.util.Map<java.lang.Long,java.lang.Double>> x)
Transforms a DataObject into another DataObject with modifications
to be in the right format for this kernel
|
clear, compute, computeKernelMatrix, computeKernelMatrix, setUseCache
public PolynomialKernel(int degree)
public PolynomialKernel(int degree, double gamma, double coef)
public DataObject<java.util.Map<java.lang.Long,java.lang.Double>> convertVector(DataObject<java.util.Map<java.lang.Long,java.lang.Double>> x) throws InvalidVectorIndexException
Kernel
convertVector
in class Kernel<java.util.Map<java.lang.Long,java.lang.Double>>
x
- a DataObject that encapsulates the data instance to be
transformedInvalidVectorIndexException
- when the DataObject to be transformed
has occupied reserved constants