pykelihood.kernels.
polynomial#
- polynomial(X, a, b, c)#
Polynomial kernel function.
\[y = a + b \cdot X + c \cdot X^2\]- Parameters:
X (array-like) – Input data.
a (float) – Constant term.
b (float) – Coefficient for the linear term.
c (float) – Coefficient for the quadratic term.
- Returns:
Output of the polynomial kernel.
- Return type:
array-like