himalaya.kernel_ridge.sigmoid_kernel

himalaya.kernel_ridge.sigmoid_kernel(X, Y=None, gamma=None, coef0=1)[source]

Compute the sigmoid kernel between X and Y:

K(X, Y) = tanh(gamma <X, Y> + coef0)
Parameters
Xarray of shape (n_samples_X, n_features)

Train or test features.

Yarray of shape (n_samples_Y, n_features)

Train features.

gammafloat, default None

If None, defaults to 1.0 / n_features

coef0float, default 1

Intercept.

Returns
Karray of shape (n_samples_X, n_samples_Y)

Computed kernel.