himalaya.kernel_ridge.linear_kernel

himalaya.kernel_ridge.linear_kernel(X, Y=None)[source]

Compute the linear kernel between X and Y.

Parameters
Xarray of shape (n_samples_X, n_features)

Train or test features.

Yarray of shape (n_samples_Y, n_features)

Train features.

Returns
Karray of shape (n_samples_X, n_samples_Y)

Computed kernel.