rnel k(X, Y)

Y : ndarray of shape (n_samples_Y, n_features), default=None
    Right argument of the returned kernel k(X, Y). If None, k(X, X)
    if evaluated instead.

eval_gradient : bool, default=False
    Determines whether the gradient with respect to the log of
    the kernel hyperparameter is computed.
    Only supported when Y is None.

Returns
-------
K : ndarray of shape (n_samples_X, n_samples_Y)
    Kernel k(X, Y)

K_gradient : ndarray of shape (n_samples_X, n_samples_X, n_dims),                 optional
    The gradient of the kernel k(X, X) with respect to the log of the
    hyperparameter of the kernel. Only returned when `eval_gradient`
    is True.
N