Maximum margin classification with support vector machines
Another powerful and widely used learning algorithm is the support vector machine (SVM), which can be considered an extension of the perceptron. Using the perceptron algorithm, we minimized misclassification errors. However, in SVMs, our optimization objective is to maximize the margin. The margin is defined as the distance between the separating hyperplane (decision boundary) and the training examples that are closest to this hyperplane, which are the so-called support vectors.
This is illustrated in Figure 3.10:
Figure 3.10: SVM maximizes the margin between the decision boundary and training data points
Maximum margin intuition
The rationale behind having decision boundaries with large margins is that they tend to have a lower generalization error, whereas models with small margins are more prone to overfitting.
Unfortunately, while the main intuition behind SVMs is relatively simple, the mathematics...