Which separating line
The topic Classification metrics taught us to judge a trained classifier. It does not say which classifier to train. When the classes in the training set are separable, infinitely many hyperplanes have zero training error, and every metric on the training set calls them perfect. The logistic loss sends the weights to infinity on such data (see Logistic regression). The hinge loss drops to zero once every margin is at least and stops telling the solutions apart. The support vector machine (SVM) answers with geometry: take the hyperplane that stays as far as possible from the nearest training points.
Classes in this topic are . Recall two quantities from Linear classifiers and surrogate losses. The distance from a point to the hyperplane is
and the margin of an object is . It is positive when the object is classified correctly. For a hyperplane that classifies every point correctly, . So the margin of the hyperplane, its distance to the nearest training point, is
The running example comes from the topic Duality of the course Mathematics for ML. The negative points are and , the positive ones and . The line separates them without errors, but passes from and . The line makes no errors either, and its nearest points, , and , are at distance . A new negative object just above lands on the wrong side of the first line and on the right side of the second.
The SVM idea is to maximize . The intuition: a decision that does not change when every training point is nudged a little is less tuned to the accidents of the sample. The formal argument comes in the last block.