r""" Evaluate the softplus activation on the elements of input `z`. .. math:: \text{SoftPlus}(z_i) = \log(1 + e^{z_i})
(self, z)
| 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""" |
no outgoing calls