Interactive demo · Bayesian and Probabilistic Machine Learning · Chapter 7

Support vector machines: maximum margin, soft margin and the ε-tube

A support vector machine is a kernel model y(x) = ∑n an tn k(x, xn) + b whose coefficients are found from a convex dual problem, and most an come out exactly zero. The points with an > 0 are the support vectors: they alone define the boundary. The solver here is a small sequential minimal optimisation (SMO), the same algorithm as in the Python code. Click on the plot to add or remove points and watch the solution change. In regression, errors smaller than ε are free, so points inside the tube are not support vectors.

Problem

Data

Kernel

Kernel width γ in exp(−γ‖x−x′‖²)

Slack penalty C

Tube half-width ε

Click on the plot to

Try these

Classification: red is t = +1 and blue t = −1; the solid line is y(x) = 0 and the dashed lines the margins y(x) = ±1. Gold rings: support vectors on the margin (0 < a < C); violet rings: bounded support vectors (a = C, inside the margin or misclassified). Data are simulated; the overlapping classes are a stand-in for the synthetic set of Bishop (2006), Appendix A.

In the lecture notes