saealib.CubicKernel#
- class saealib.CubicKernel[source]#
Bases:
RBFKernelCubic radial basis function kernel.
This conditionally positive definite kernel has order 1 and requires a linear polynomial term for a well-posed system. Based on [16].
Methods
Evaluate the cubic kernel for a radial-distance matrix. |
|
Evaluate the kernel between every row of |
|
Return a kernel whose data-dependent parameters are resolved. |
|
Validate static kernel configuration. |
Method Details
- CubicKernel.__init__()#
- Return type:
None
- CubicKernel.evaluate(r)[source]#
Evaluate the cubic kernel for a radial-distance matrix.
- Parameters:
r (ndarray)
- Return type:
ndarray
- CubicKernel.pairwise(x1, x2)#
Evaluate the kernel between every row of
x1andx2.- Parameters:
x1 (ndarray)
x2 (ndarray)
- Return type:
ndarray
- CubicKernel.resolve(train_x)#
Return a kernel whose data-dependent parameters are resolved.
Calls
validate()before returning, so a custom subclass that overridesvalidate()but notresolve()still gets its configuration checked at resolve time.- Parameters:
train_x (ndarray)
- Return type:
Self
- CubicKernel.validate()#
Validate static kernel configuration.
- Return type:
None