SVM Support Vector Machine
Maximizes distance to nearest point
= margin
if you go to machine learning party, everybody talk machine learning
SVMs – Outliers
SVM in SKlearn
http://scikit-learn.org/stable/modules/generated/sklearn.svm.SVC.html
import numpy as np import pylab as pl features_train, labels_train, features_test, labels_test = makeTerrainData() from sklearn.svm import SVC clf = SVC(kernel="linear") clf.fit( features_train, labels_train ) pred = clf.predict( features_test ) from sklearn.metrics import accuracy_score acc = accuracy_score(pred, labels_test) def submitAccuracy(): return acc