Jump to content

Sigmoid function: Difference between revisions

From Wikibase
Created page with "Category:Special functionCategory:Activation function 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 == $$ \sigma:\mathbb{R}\to(0,1)\\ \sigma(x)=\frac{1}{1+e^{-x}}. $$ == Properties == === Limits === The sigmoid is strictly increasing, w..."
 
Restore TeX in caption (client-side math) (via update-page on MediaWiki MCP Server)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Special function]][[Category:Activation function]]
[[Category:Special function]][[Category:Activation function]]
The '''sigmoid function''' is a bounded, differentiable, and real-valued [[special function]], commonly used as an [[activation function]] in [[artificial neural network (ANN)|artificial neural networks (ANN)]].
[[File:Sigmoid-function-plot.svg|thumbnail|$\sigma(z)=\frac{1}{1+e^{-z}}$ for $z\in[-5.6,5.6]$, with the asymptote $\sigma=1$ and $\sigma(0)=\frac{1}{2}$ marked]]
The '''sigmoid function''', also known as the '''logistic function''', is a bounded, differentiable, and real-valued [[special function]], commonly used as an [[activation function]] in [[artificial neural network (ANN)|artificial neural networks (ANN)]].


It is the inverse of the [[logit function]].
It is the inverse of the [[logit function]].
Line 33: 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).
$$
$$

Latest revision as of 11:52, 17 November 2026

Languages: English · français · Esperanto

$\sigma(z)=\frac{1}{1+e^{-z}}$ for $z\in[-5.6,5.6]$, with the asymptote $\sigma=1$ and $\sigma(0)=\frac{1}{2}$ marked
Image: Rong Martin-Siebler ZHOU and Veramiko AI · CC BY-SA 4.0
· Open in a new tab

The sigmoid function, also known as the logistic 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). $$