xnn.common.models.ops.softplus_inverse#

xnn.common.models.ops.softplus_inverse(x)[source]#

Return y such that softplus(y) = x (x > 0, float or array).

Evaluated as x + log(1 - exp(-x)) (i.e. log(expm1(x)) rearranged so the exponential never overflows for large x); used to initialize parameters that a softplus keeps positive (PhysNet, SpookyNet).