shifted_softplus#

bayesflow.utils.numpy_utils.shifted_softplus(x: ndarray, beta: float = 1.0, threshold: float = 20.0, shift: float = 0.541324854612918) ndarray[source]#

Shifted version of the softplus function such that shifted_softplus(0) = 1