Skip to content

Commit

Permalink
Add \ifdefined guard for \sl's use of \renewcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
jemus42 committed Nov 19, 2024
1 parent ad998d7 commit 523997f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ml-svm.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
% linear svm
\newcommand{\sv}{\operatorname{SV}} % supportvectors
\ifdefined\sl
\renewcommand{\sl}{\zeta} % slack variable
\else \newcommand{\sl}{\zeta} \fi
\newcommand{\slvec}{\left(\zeta^{(1)}, \zeta^{(n)}\right)} % slack variable vector
\newcommand{\sli}[1][i]{\zeta^{(#1)}} % i-th slack variable
\newcommand{\scptxi}{\scp{\thetav}{\xi}} % scalar prodct of theta and xi
Expand Down

0 comments on commit 523997f

Please sign in to comment.