public class BinarySparseLinearKernel extends java.lang.Object implements MercerKernel<int[]>, DotProductKernel
| Constructor and Description |
|---|
BinarySparseLinearKernel()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
hi()
Returns the upper bound of hyperparameters.
|
double[] |
hyperparameters()
Returns the hyperparameters for tuning.
|
double |
k(double dot)
Computes the dot product kernel function.
|
double |
k(int[] x,
int[] y)
Kernel function.
|
double[] |
kg(double dot)
Computes the dot product kernel function and its gradient over hyperparameters..
|
double[] |
kg(int[] x,
int[] y)
Computes the kernel and its gradient over hyperparameters.
|
double[] |
lo()
Returns the lower bound of hyperparameters.
|
BinarySparseLinearKernel |
of(double[] params)
Returns the same kind kernel with the new hyperparameters.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapply, applyAsDouble, K, K, KGapply, f, Kpublic java.lang.String toString()
toString in class java.lang.Objectpublic double k(double dot)
DotProductKernelk in interface DotProductKerneldot - the dot product.public double[] kg(double dot)
DotProductKernelkg in interface DotProductKerneldot - The dot product.public double k(int[] x,
int[] y)
MercerKernelk in interface MercerKernel<int[]>public double[] kg(int[] x,
int[] y)
MercerKernelkg in interface MercerKernel<int[]>public BinarySparseLinearKernel of(double[] params)
MercerKernelof in interface MercerKernel<int[]>public double[] hyperparameters()
MercerKernelhyperparameters in interface MercerKernel<int[]>public double[] lo()
MercerKernello in interface MercerKernel<int[]>public double[] hi()
MercerKernelhi in interface MercerKernel<int[]>