AID202 · Foundations of Machine Learning

Lectures 15–16 · Support Vector Machines

Visual playgrounds for maximum-margin geometry, support vectors, soft margins, multiclass scores, and kernels.

maximum marginsupport vectorsslack & Cmulticlass scoreskernel trick
Predict first: before dragging a point or moving a slider, ask what you expect to change and what should remain unchanged.
Geometry

1. Margin laboratory

Rotate and move a separating hyperplane. See why many zero-error separators are not equally good.

Open playground
Support vectors

2. Which points matter?

Drag or remove training points and retrain. Compare a margin point with a far-away point.

Open playground
Soft margin

3. What does C buy us?

Add noise and outliers, vary C, and watch the margin-versus-violation tradeoff.

Open playground
Multiclass

4. Score competition

Three linear class scores compete over the plane. Change one score and watch its decision region grow or shrink.

Open playground
Kernels

5. Similarity and nonlinear boundaries

Compare linear, quadratic, and RBF kernels on nonlinear data. Change γ and inspect locality.

Open playground