mirror of
https://github.com/NotXia/unibo-ai-notes.git
synced 2025-12-15 02:52:22 +01:00
Fix leaky ReLU
This commit is contained in:
@ -371,7 +371,7 @@ The prediction is obtained as the index of the maximum score.
|
|||||||
\[
|
\[
|
||||||
\texttt{leaky\_ReLU}(a) = \begin{cases}
|
\texttt{leaky\_ReLU}(a) = \begin{cases}
|
||||||
a & \text{if $a \geq 0$} \\
|
a & \text{if $a \geq 0$} \\
|
||||||
0.01 & \text{otherwise}
|
0.01 \cdot a & \text{otherwise}
|
||||||
\end{cases} \hspace{2em}
|
\end{cases} \hspace{2em}
|
||||||
\frac{\partial \texttt{leaky\_ReLU}(a)}{\partial a} = \begin{cases}
|
\frac{\partial \texttt{leaky\_ReLU}(a)}{\partial a} = \begin{cases}
|
||||||
1 & \text{if } a \geq 0 \\
|
1 & \text{if } a \geq 0 \\
|
||||||
|
|||||||
Reference in New Issue
Block a user