experimental_enable_loss_penalty

zfit.loss.experimental_enable_loss_penalty(enable=True)[source]

EXPERIMENTAL! Enable a loss penalty if the loss is NaN, which can push back the minimizer.

Won’t work with every minimizer

Parameters

enable – If True, enable this feature.