Jump to content

Sigmoid function: Difference between revisions

From Wikibase
No edit summary
Line 34: Line 34:
$$
$$
\dot{\sigma}(x)=\sigma(x)\bigl(1-\sigma(x)\bigr).
\dot{\sigma}(x)=\sigma(x)\bigl(1-\sigma(x)\bigr).
$$
== Generalised form (Richard's curve) ==
$$
\sigma(z):\mathbb{R} \to (0,L)
\sigma(z)=\frac{L}{1+e^{-k(z-z_0)}},
\qquad L>0,\ k>0,\ z_0\in\mathbb{R}.
$$
The standard sigmoid function is then the special case $L=1$, $k=1$, and $z_0=0$.
=== Properties of the generalised form ===
=== Limit ===
$$
\begin{cases}
\lim_{z\to-\infty}\sigma(z)=0,\\
\lim_{z\to+\infty}\sigma(z)=L.
\end{cases}
$$
=== Symmetry according to $z=z_0$ ===
$$
\sigma(2z_0-z)=L-\sigma(z).
$$
=== Derivative ===
$$
\dot{\sigma}(z)
=
k\,\sigma(z)\left(1-\frac{\sigma(z)}{L}\right).
$$
$$

Revision as of 10:11, 11 November 2026

Languages: English · français · Esperanto

· Open in a new tab

The sigmoid function is a bounded, differentiable, and real-valued special function, commonly used as an activation function in artificial neural networks (ANN).

It is the inverse of the logit function.

Definition

$$\begin{gathered} \sigma:\mathbb{R}\to(0,1)\\ \sigma(x)=\frac{1}{1+e^{-x}}. \end{gathered}$$

Properties

Limits

The sigmoid is strictly increasing, with limits

$$ \lim_{x\to-\infty}\sigma(x)=0, \qquad \lim_{x\to+\infty}\sigma(x)=1. $$

Symmetry

$$ \sigma(-x)=1-\sigma(x). $$

Derivative

$$ \dot{\sigma}(x)=\sigma(x)\bigl(1-\sigma(x)\bigr). $$

Generalised form (Richard's curve)

$$ \sigma(z):\mathbb{R} \to (0,L) \sigma(z)=\frac{L}{1+e^{-k(z-z_0)}}, \qquad L>0,\ k>0,\ z_0\in\mathbb{R}. $$

The standard sigmoid function is then the special case $L=1$, $k=1$, and $z_0=0$.

Properties of the generalised form

Limit

$$ \begin{cases} \lim_{z\to-\infty}\sigma(z)=0,\\ \lim_{z\to+\infty}\sigma(z)=L. \end{cases} $$

Symmetry according to $z=z_0$

$$ \sigma(2z_0-z)=L-\sigma(z). $$

Derivative

$$ \dot{\sigma}(z) = k\,\sigma(z)\left(1-\frac{\sigma(z)}{L}\right). $$