Many lines can split two classes. An SVM picks the one with the widest empty street on either side. See which points hold that street up, then bend it with a kernel.
After training, every point gets a weight α. Most are exactly zero. The points with α > 0 are the support vectors: they sit on or inside the margin and hold the boundary in place. Press Keep only SVs in the lab and the boundary will not move.
Real data overlaps, so a perfect street is impossible. C sets the price of a point on the wrong side. Small C tolerates mistakes and keeps the street wide. Large C punishes every mistake and squeezes the street to fit. Train accuracy climbs with C while test accuracy peaks and may slip. Click the chart to try a C.
A kernel measures similarity between two points. The RBF kernel, exp(−γ·distance²), makes each support vector a bump of influence. γ sets the bump width: small γ gives broad, smooth boundaries, large γ gives tiny islands around single points. This table refits at every γ with your current C. Click a row to use it.
Too small a γ and the boundary is almost straight (underfit). Too large and it memorises the training points (overfit). Tune γ and C together using test accuracy.
A ring of points with a linear kernel. A straight line cannot enclose a circle, so accuracy stays near a coin flip.
Overlapping clusters with RBF, huge γ and huge C. The boundary draws an island around every point.
Same data, but a gentler γ and a smaller C. The islands merge into one smooth boundary.