xnn.common.models.ops.softplus_inverse#
- xnn.common.models.ops.softplus_inverse(x)[source]#
Return
ysuch thatsoftplus(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 largex); used to initialize parameters that a softplus keeps positive (PhysNet, SpookyNet).