Jump to content

Sigmoid function: Difference between revisions

From Wikibase
No edit summary
Replace PNG thumbnail with SVG plot (via update-page on MediaWiki MCP Server)
Line 1: Line 1:
[[Category:Special function]][[Category:Activation function]]
[[Category:Special function]][[Category:Activation function]]
[[File:Sigmoid function.png|thumbnail|]]
[[File:Sigmoid-function-plot.svg|thumbnail|$\sigma(z)=1/(1+e^{-z})$ for $z\in[-5.6,5.6]$, with the asymptote $\sigma=1$ and $\sigma(0)=\tfrac{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)]].
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)]].



Revision as of 11:51, 17 November 2026

Languages: English · français · Esperanto

$\sigma(z)=1/(1+e^{-z})$ for $z\in[-5.6,5.6]$, with the asymptote $\sigma=1$ and $\sigma(0)=\tfrac{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). $$