renate.shift.kernels module#

class renate.shift.kernels.Kernel[source]#

Bases: object

Base class for kernel functions.

class renate.shift.kernels.RBFKernel(lengthscale=None)[source]#

Bases: Kernel

A radial basis function kernel.

This kernel has one hyperparameter, a scalar lengthscale. If this is set to None (default), the lengthscale will be set adaptively, at _each_ call to the kernel, via the median heuristic.

Parameters:

lengthscale (Optional[float]) – The kernel lengthscale. If None (default), this is set automatically via the median heuristic. Note: In this case, the lengthscale will be reset at each call to the kernel.