mlx.nn.sigmoid

Contents

mlx.nn.sigmoid#

class sigmoid(x)#

Applies the sigmoid function.

\[\text{Sigmoid}(x) = \sigma(x) = \frac{1}{1 + \exp(-x)}\]