saealib.ThinPlateSplineKernel#

class saealib.ThinPlateSplineKernel[source]#

Bases: RBFKernel

Thin-plate spline radial basis function kernel.

This conditionally positive definite kernel has order 1 and requires a linear polynomial term for a well-posed system.

Methods

__init__

evaluate

Evaluate the thin-plate spline kernel for a radial-distance matrix.

pairwise

Evaluate the kernel between every row of x1 and x2.

resolve

Return a kernel whose data-dependent parameters are resolved.

validate

Validate static kernel configuration.

Method Details

ThinPlateSplineKernel.__init__()#
Return type:

None

ThinPlateSplineKernel.evaluate(r)[source]#

Evaluate the thin-plate spline kernel for a radial-distance matrix.

Parameters:

r (ndarray)

Return type:

ndarray

ThinPlateSplineKernel.pairwise(x1, x2)#

Evaluate the kernel between every row of x1 and x2.

Parameters:
  • x1 (ndarray)

  • x2 (ndarray)

Return type:

ndarray

ThinPlateSplineKernel.resolve(train_x)#

Return a kernel whose data-dependent parameters are resolved.

Calls validate() before returning, so a custom subclass that overrides validate() but not resolve() still gets its configuration checked at resolve time.

Parameters:

train_x (ndarray)

Return type:

Self

ThinPlateSplineKernel.validate()#

Validate static kernel configuration.

Return type:

None