Differences

This shows you the differences between two versions of the page.

Link to this comparison view

technical:losses [2021/09/06 07:11] – created chunchungtechnical:losses [2021/09/08 03:09] (current) – [Prediction error] chunchung
Line 12: Line 12:
 \begin{equation}r = \mathop{\text{argmax}}_ix_i.\end{equation} \begin{equation}r = \mathop{\text{argmax}}_ix_i.\end{equation}
 While, the prediction error over a dataset is given by While, the prediction error over a dataset is given by
-\begin{equation}E_\text{pred} = [y\neq\mathop{\text{argmax}}_ix_i] = \langle 1-\delta_{r,y}\rangle\end{equation}+\begin{equation}E_\text{pred} = \langle[y\neq\mathop{\text{argmax}}_ix_i]\rangle = \langle 1-\delta_{r,y}\rangle\end{equation}
 where $[\cdot]$ is the [[https://en.wikipedia.org/wiki/Iverson_bracket|Iverson bracket]] and $\delta$ is the [[https://en.wikipedia.org/wiki/Kronecker_delta|Kronecker delta]] function. where $[\cdot]$ is the [[https://en.wikipedia.org/wiki/Iverson_bracket|Iverson bracket]] and $\delta$ is the [[https://en.wikipedia.org/wiki/Kronecker_delta|Kronecker delta]] function.