So I have a table with equations, below. It's a bit crunched up and I want to add vertical space in the rows. I'm using booktabs
package for heavy lifting.
\begin{table}
\begin{tabular}{lcc}
\toprule
Name & Function & Derivative & \\
\midrule
Sigmoid & $\phi(x) = \ddfrac{1}{1+e^{-x}}$ & $\phi'(x) = \phi(x)(1-\phi(x))$\\
TanH & $\phi(x) = \ddfrac{2}{1+e^{-2x}} - 1$ & $\phi'(x) = 1-\phi(x)^2$ \\
ReLU & $\phi(x) = \begin{cases}
0 & x \leq 0 \\
x & x > 0
\end{cases} $
& $\phi'(x) = \begin{cases}
0 & x \leq 0 \\
1 & x > 0
\end{cases} $ \\
Leaky ReLU & $\phi(x) = \begin{cases}
\alpha x & x \leq 0 \\
x & x > 0
\end{cases} $
& $\phi'(x) = \begin{cases}
\alpha & x \leq 0 \\
1 & x > 0
\end{cases} $ \\
\bottomrule
\end{tabular}
\caption{Activation functions and their derivatives.}
\label{tab:activation-functions}
\end{table}
I tried adding: \renewcommand{\arraystretch}{2}
before I write the table but it messes up more. Here's the result.
So any idea how to make it look pretty with the equations? Looking for a relatively quick solution because this is the only table I'll have with equations. But open to anything that works.
booktabs
'\addlinespace
.