T
- public final class SimpleCacheKernel<T> extends Kernel<T>
Constructor and Description |
---|
SimpleCacheKernel(Kernel<T> k,
java.util.List<TrainingSample<T>> l)
Constructor using a kernel and a list of samples
|
Modifier and Type | Method and Description |
---|---|
Kernel<T> |
getKernel()
Returns the underlying kernel
|
double[][] |
getKernelMatrix(java.util.List<TrainingSample<T>> e)
return the Gram Matrix of this kernel computed on given samples
|
java.lang.String |
toString()
return the name of this kernel
|
double |
valueOf(T t1)
kernel similarity to zero
|
double |
valueOf(T t1,
T t2)
compute the kernel similarity between two element of input space
|
getNormalizedKernelMatrix, normalizedValueOf, setName
public SimpleCacheKernel(Kernel<T> k, java.util.List<TrainingSample<T>> l)
k
- the underlying of this caching kernell
- the list on which to compute the Gram matrixpublic final double valueOf(T t1, T t2)
Kernel
public final double valueOf(T t1)
Kernel
public double[][] getKernelMatrix(java.util.List<TrainingSample<T>> e)
Kernel
getKernelMatrix
in class Kernel<T>
e
- list of samples on which to compute the Gram matrix