Compute the sigmoid function.
Usage
sigmoid(x)
The sigmoid function is :math:\sigma(x) = \frac{1}{1 + e^{-x}}.
\sigma(x) = \frac{1}{1 + e^{-x}}
x: float
Input value.
float
Sigmoid output in range :math:(0, 1).
(0, 1)