I am trying to left-align a cases
inside an equation, like this:
and I need it to be inside equation
because of the number (16)
.
When I try this:
\begin{equation} \label{eq:evaluate_metrics}
\begin{align*}
&\begin{cases}
TPR=T_P/(T_P+F_N)\\
FPR=F_P/(F_P+T_N)\\
ACC=(T_P+T_N)/(T_P+F_N+F_P+T_N)\\
PRE=T_P/(T_P+F_P)
\end{cases}
\end{align*}
\end{equation}
gives me an error:
Package amsmath Error: Erroneous nesting of equation structures;(amsmath) trying to recover with `aligned'. \end{align*}
How can I make it look like the picture while including the equation number?
align*
insideequation
. Just remove\begin{align*}
,\end{align*}
and also the&
.equation
intoflalign
, add& in front of
\begin{cases}` and&&
after\end{cases}
. But don't.