MCPcopy Create free account
hub / github.com/ddbourgin/numpy-ml / fn

Method fn

numpy_ml/neural_nets/activations/activations.py:688–696  ·  view source on GitHub ↗

r""" Evaluate the softplus activation on the elements of input `z`. .. math:: \text{SoftPlus}(z_i) = \log(1 + e^{z_i})

(self, z)

Source from the content-addressed store, hash-verified

686 return "SoftPlus"
687
688 def fn(self, z):
689 r"""
690 Evaluate the softplus activation on the elements of input `z`.
691
692 .. math::
693
694 \text{SoftPlus}(z_i) = \log(1 + e^{z_i})
695 """
696 return np.log(np.exp(z) + 1)
697
698 def grad(self, x):
699 r"""

Callers 2

test_softplus_activationFunction · 0.95
test_softplus_activationFunction · 0.95

Calls

no outgoing calls

Tested by 2

test_softplus_activationFunction · 0.76
test_softplus_activationFunction · 0.76