English
Languages
English
Bengali
French
Hindi
Italian
Japanese
Korean
Malayalam
Russian
Spanish
Tamil
Turkish
Vietnamese



TrainableKernel

class TrainableKernel(*, training_parameters=None, **kwargs)[source]

Bases: BaseKernel, ABC

An abstract definition of the ability to train kernel via specifying training parameters.

Parameters:
  • training_parameters (ParameterVector | Sequence[Parameter] | None) – a sequence of training parameters.

  • **kwargs – Additional parameters may be used by the super class.

Attributes

num_training_parameters

Returns the number of training parameters.

parameter_values

Returns numerical values assigned to the training parameters as a numpy array.

training_parameters

Returns the vector of training parameters.

Methods

assign_training_parameters(parameter_values)

Fix the training parameters to numerical values.