An SVM is just Hinge loss with L2-regularization f(w)=∑i=1nmax{0,1−yiwTxi} They can also be viewed as ‘maximizing the margin’: