public class LinearKernel extends Kernel<java.util.Map<java.lang.Long,java.lang.Double>>
Constructor and Description |
---|
LinearKernel()
Creates a linear kernel
|
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, getBNorm, setUseCache
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