pymor.algorithms.vkoga.kernels

Module Contents

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

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.

Methods

diag

Return the diagonal of the kernel matrix.

diag(X)[source]

Return the diagonal of the kernel matrix.