Interface DotProductKernel
- All Superinterfaces:
Function, Serializable
- All Known Implementing Classes:
BinarySparseHyperbolicTangentKernel, BinarySparseLinearKernel, BinarySparsePolynomialKernel, HyperbolicTangent, HyperbolicTangentKernel, LinearKernel, Polynomial, PolynomialKernel, SparseHyperbolicTangentKernel, SparseLinearKernel, SparsePolynomialKernel
Dot product kernel depends only on the dot product of x and y.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault doubleapply(double dot) Computes the kernel function.default doublef(double dot) Computes the value of the function at x.doublek(double dot) Computes the dot product kernel function.default MatrixComputes the kernel matrix.double[]kg(double dot) Computes the dot product kernel function and its gradient over hyperparameters.
-
Method Details
-
f
-
k
double k(double dot) Computes the dot product kernel function.- Parameters:
dot- the dot product.- Returns:
- the kernel value.
-
kg
double[] kg(double dot) Computes the dot product kernel function and its gradient over hyperparameters.- Parameters:
dot- The dot product.- Returns:
- the kernel value and gradient.
-
apply
-
K
-