Linear Classifiers in Python
Michael (Mike) Gelbart
Instructor, The University of British Columbia



$\textrm{transformed feature} =$
$ (\textrm{original feature})^2$

$\textrm{transformed feature} =$
$ (\textrm{original feature})^2$


$\textrm{transformed feature} =$
$ (\textrm{original feature})^2$
from sklearn.svm import SVC
svm = SVC(gamma=1) # default is kernel="rbf"

from sklearn.svm import SVC
svm = SVC(gamma=0.01) # default is kernel="rbf"

gamma leads to smoother boundariesfrom sklearn.svm import SVC
svm = SVC(gamma=2) # default is kernel="rbf"

gamma leads to more complex boundariesLinear Classifiers in Python