
What can we do when we can’t draw a line that separates the two classes?
sklearn has implementations for a variety of SVM methods:
sklearn.svm.SVC
linear: \(\langle x, x'\rangle\)polynomial: \((\gamma \langle x, x'\rangle + r)^d\)rbf: \(\exp(-\gamma \|x-x'\|^2)\)sigmoid: \(\tanh(\gamma \langle x,x'\rangle + r)\)sklearn.svm.NuSVC
sklearn.svm.LinearSVC