Skip to content

Commit

Permalink
change color
Browse files Browse the repository at this point in the history
  • Loading branch information
santiviquez committed Dec 1, 2024
1 parent d128127 commit dcacd3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions book/2-regression.tex
Original file line number Diff line number Diff line change
Expand Up @@ -532,14 +532,14 @@ \subsection{Mean Gamma Deviance}
\node[inner sep=2pt, font=\Large] (a) {
{
$\displaystyle
MGD = \frac{1}{{\color{nmlred}n}} \sum_{i=0}^{{n-1}} 2 \left( {\color{teal!70!green}y_i} \log\left(\frac{\color{teal!70!green}y_i}{\color{nmlpurple}\hat{y}_i}\right) - ({\color{teal!70!green}y_i} - {\color{nmlpurple}\hat{y}_i}) \right)
MGD = \frac{1}{{\color{nmlred}n}} \sum_{i=0}^{{n-1}} 2 \left( {\color{nmlcyan}y_i} log\left(\frac{\color{nmlcyan}y_i}{\color{nmlpurple}\hat{y}_i}\right) - ({\color{nmlcyan}y_i} - {\color{nmlpurple}\hat{y}_i}) \right)
$
}
};

\draw[-latex,nmlred, semithick] ($(a.south)+(-2.5,0.2)$) to[bend left=15] node[pos=1, left] {number of samples} +(-1,-.5);
\draw[-latex, teal!70!green, semithick] ($(a.north)+(1.2,-0.2)$) to[bend left=15] node[pos=1, right] {actual value} +(1,.5);
\draw[-latex, nmlpurple, semithick] ($(a.south)+(1.2,0.2)$) to[bend right=15] node[pos=1, right] {predicted value} +(1,-.5);
\draw[-latex, nmlcyan, semithick] ($(a.north)+(1.2,-0.2)$) to[bend left=15] node[pos=1, right] {actual value} +(1,.5);
\draw[-latex, nmlpurple, semithick] ($(a.south)+(1.2,0.2)$) to[bend right=15] node[pos=1, right] {predicted value} +(1,-.5);
}
\end{center}

Expand Down

0 comments on commit dcacd3d

Please sign in to comment.