vault backup: 2025-10-29 17:14:01
This commit is contained in:
@@ -25,3 +25,14 @@ since it remains differentiable.
|
||||
$$
|
||||
\sigma(x) = \frac{1}{1 + e^{-x}}
|
||||
$$
|
||||
|
||||
```tikz
|
||||
\begin{document}
|
||||
\begin{tikzpicture}[domain=-5:5]
|
||||
\draw[->] (-5.2,0) -- (5.2,0) node[right] {$x$}; % x axis
|
||||
\draw[->] (0,-5.2) -- (0,5.2) node[above] {$y$}; % y axis
|
||||
\draw[color=red] plot (\x,\x) node[right] {$f(x) = x$};
|
||||
\draw[color=orange] plot (\x,{1/(1+exp(-\x))}) node[right] {$\sigma(x) = \frac{1}{1 + e^{-x}}$};
|
||||
\end{tikzpicture}
|
||||
\end{document}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user