pykelihood.kernels.
linear#
- linear(X, a, b)#
Linear kernel function.
\[y = a + b \cdot X\]- Parameters:
X (array-like) – Input data.
a (float) – Intercept of the linear function.
b (float) – Slope of the linear function.
- Returns:
Output of the linear kernel.
- Return type:
array-like