autodiff.reverse.logistic

autodiff.reverse.logistic(x)

Return the logistic function of x.

Parameters
xint, float, Node
Returns
yfloat or Node

Examples

>>> ad.logistic(1)
0.7310585786300049
>>> x = ad.Node(3)
>>> ad.logistic(x)
Node(0.9525741268224334)