pykelihood.kernels.Kernel.

with_params#

Kernel.with_params(params=None, **named_params)#

Create a new instance of the object with the given parameters.

Parameters:
  • params (Iterable, optional) – Sequence of parameters in the same format as the params property, by default None.

  • named_params (dict, optional) – Optionally, provide the parameters by name.

Returns:

The new instance.

Return type:

Parametrized

Raises:

ValueError – If both params and named_params are provided.