pymor.algorithms.ml.vkoga.kernels

Classes

GaussianKernel

Standalone Gaussian (RBF) kernel with scikit-learn-like interface.

class pymor.algorithms.ml.vkoga.kernels.GaussianKernel(length_scale=1.0)[source]

Bases: BaseEstimator

Standalone Gaussian (RBF) kernel with scikit-learn-like interface.

\[k(x, y) = \exp(-||x - y||_2^2 / (2 l^2))\]

where \(l\) is the length scale parameter.

Parameters:

length_scale – The length scale parameter of the kernel.

diag(X)[source]

Return the diagonal of the kernel matrix.