saealib.RBFKernel#

class saealib.RBFKernel[ソース]#

ベースクラス: ABC

Abstract base for RBF kernel implementations.

A subclass implements the radial profile phi(r); kernel-specific parameters (e.g. length_scale, nu) are held as object state rather than passed through a shared call signature.

Methods

__init__

evaluate

Evaluate phi(r) 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

RBFKernel.__init__()#
abstractmethod RBFKernel.evaluate(r)[ソース]#

Evaluate phi(r) for a radial-distance matrix.

パラメータ:

r (ndarray)

戻り値の型:

ndarray

RBFKernel.pairwise(x1, x2)[ソース]#

Evaluate the kernel between every row of x1 and x2.

パラメータ:
  • x1 (ndarray)

  • x2 (ndarray)

戻り値の型:

ndarray

RBFKernel.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.

パラメータ:

train_x (ndarray)

戻り値の型:

Self

RBFKernel.validate()[ソース]#

Validate static kernel configuration.

戻り値の型:

None