KernelModel

class KernelModel

Bases: object

Kernel model class.

Methods

__init__

Initializes the KernelModel with given parameters.

Attributes

coef_matrix

Returns the coefficient matrix of the kernel model.

coef_matrix_mu

Returns the coefficient matrix for the mean of the kernel model.

coef_matrix_sigma

Returns the coefficient matrix for the sigma of the kernel model.

coef_vector

Returns the coefficient vector of the kernel model.

coef_vector_mu

Returns the coefficient vector for the mean of the kernel model.

coef_vector_sigma

Returns the coefficient vector for the sigma of the kernel model.

__call__(x: ndarray) ndarray | float

Call self as a function.

__init__(beta: float = 0.0, gamma: float = 0.0) None

Initializes the KernelModel with given parameters.

Parameters:
  • beta (float, optional) – Weight for ‘sigma’ in the lower confidence bound (LCB). Defaults to 0.0.

  • gamma (float, optional) – Weight for a linear term in the model. Defaults to 0.0.

__dict__ = mappingproxy({'__module__': 'amplify_bbopt.trainer', '__doc__': 'Kernel model class.', '__init__': <function KernelModel.__init__>, 'coef_matrix': <property object>, 'coef_vector': <property object>, 'coef_matrix_mu': <property object>, 'coef_vector_mu': <property object>, 'coef_matrix_sigma': <property object>, 'coef_vector_sigma': <property object>, '_predict': <function KernelModel._predict>, '__call__': <function KernelModel.__call__>, '__dict__': <attribute '__dict__' of 'KernelModel' objects>, '__weakref__': <attribute '__weakref__' of 'KernelModel' objects>, '__annotations__': {'_coef_matrix_mu': 'np.ndarray | None', '_coef_vector_mu': 'np.ndarray | None', '_coef_matrix_sigma': 'np.ndarray | None', '_coef_vector_sigma': 'np.ndarray | None', '_beta': 'float', '_gamma': 'float'}})
__weakref__

list of weak references to the object (if defined)

property coef_matrix: ndarray

Returns the coefficient matrix of the kernel model.

property coef_matrix_mu: ndarray | None

Returns the coefficient matrix for the mean of the kernel model.

property coef_matrix_sigma: ndarray | None

Returns the coefficient matrix for the sigma of the kernel model.

property coef_vector: ndarray

Returns the coefficient vector of the kernel model.

property coef_vector_mu: ndarray | None

Returns the coefficient vector for the mean of the kernel model.

property coef_vector_sigma: ndarray | None

Returns the coefficient vector for the sigma of the kernel model.