Adam

class zfit.minimize.Adam(tolerance=None, learning_rate=0.2, beta1=0.9, beta2=0.999, epsilon=1e-08, name='Adam', **kwargs)[source]

Bases: zfit.minimizers.base_tf.WrapOptimizer

minimize(loss, params=None)

Fully minimize the loss with respect to params.

Parameters
  • loss (ZfitLoss) – Loss to be minimized.

  • params (Optional[Iterable[ZfitParameter]]) – The parameters with respect to which to minimize the loss. If None, the parameters will be taken from the loss.

Return type

FitResult

Returns

The fit result.

step(loss, params=None)

Perform a single step in the minimization (if implemented).

Parameters

params (Union[Iterable[ZfitParameter], None, Iterable[str]]) –

Returns:

Raises

MinimizeStepNotImplementedError – if the step method is not implemented in the minimizer.