Skip to content

Commit 523997f

Browse files
committedNov 19, 2024··
Add \ifdefined guard for \sl's use of \renewcommand
1 parent ad998d7 commit 523997f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎ml-svm.tex

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
% linear svm
22
\newcommand{\sv}{\operatorname{SV}} % supportvectors
3+
\ifdefined\sl
34
\renewcommand{\sl}{\zeta} % slack variable
5+
\else \newcommand{\sl}{\zeta} \fi
46
\newcommand{\slvec}{\left(\zeta^{(1)}, \zeta^{(n)}\right)} % slack variable vector
57
\newcommand{\sli}[1][i]{\zeta^{(#1)}} % i-th slack variable
68
\newcommand{\scptxi}{\scp{\thetav}{\xi}} % scalar prodct of theta and xi

0 commit comments

Comments
 (0)
Please sign in to comment.