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