public class SparseLinearKernel extends java.lang.Object implements MercerKernel<SparseArray>, DotProductKernel
| Constructor and Description |
|---|
SparseLinearKernel()
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(SparseArray x,
SparseArray y)
Kernel function.
|
double[] |
kg(double dot)
Computes the dot product kernel function and its gradient over hyperparameters..
|
double[] |
kg(SparseArray x,
SparseArray y)
Computes the kernel and its gradient over hyperparameters.
|
double[] |
lo()
Returns the lower bound of hyperparameters.
|
SparseLinearKernel |
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(SparseArray x, SparseArray y)
MercerKernelk in interface MercerKernel<SparseArray>public double[] kg(SparseArray x, SparseArray y)
MercerKernelkg in interface MercerKernel<SparseArray>public SparseLinearKernel of(double[] params)
MercerKernelof in interface MercerKernel<SparseArray>public double[] hyperparameters()
MercerKernelhyperparameters in interface MercerKernel<SparseArray>public double[] lo()
MercerKernello in interface MercerKernel<SparseArray>public double[] hi()
MercerKernelhi in interface MercerKernel<SparseArray>