Related Topics
Documentation overview
API
Previous:
himalaya.kernel_ridge.PAIRWISE_KERNEL_FUNCTIONS
Next:
himalaya.kernel_ridge.polynomial_kernel
Navigation
Getting started
Model descriptions
Model flowchart
Troubleshooting
Gallery of examples
API
Changelog
Quick search
himalaya.kernel_ridge.linear_kernel
¶
himalaya.kernel_ridge.
linear_kernel
(
X
,
Y
=
None
)
[source]
¶
Compute the linear kernel between X and Y.
Parameters
X
array of shape (n_samples_X, n_features)
Train or test features.
Y
array of shape (n_samples_Y, n_features)
Train features.
Returns
K
array of shape (n_samples_X, n_samples_Y)
Computed kernel.