mlkernels.kernels.rq module

class mlkernels.kernels.rq.RQ(alpha)[source]

Bases: mlkernels.kernel.Kernel

Rational quadratic kernel.

Parameters

alpha (scalar) – Shape of the prior over length scales. Determines the weight of the tails of the kernel. Must be positive.

render(formatter)[source]

Render the element.

This is the lowest-level operation in pretty printing an element, and should produce a string representation of the element. This method should be implemented to determine how to render a custom element.

Parameters

formatter (elements, optional) – Function to format values.

Returns

Rendering of the element.

Return type

str