Support Vector Machines + Kernels
1. Max-Margin Idea
Among separating hyperplanes, pick the one with largest gap to nearest points. Gap . Support vectors are the points on the margin — they alone define .
trades margin width vs mistakes. Hinge: .
2. Why Only Dots Matter
Optimal is a mix of training points, so predictions use dot products only:
only for support vectors (sparse).
3. Kernel Trick
Replace dot with kernel = dot in richer space, without building that space:
| Kernel | Use | |
|---|---|---|
| Linear | text, high- | |
| Polynomial | curves | |
| RBF | smooth blobs (default) |
RBF with small → wide influence (smooth); large → spiky (may overfit).
4. Practice
Standardize features, tune and by CV. Linear first for ; RBF for nonlinear low-.
5. Exam Points
- Margin objective + support vectors — 7 marks, very frequent.
- Kernel trick + RBF form — 5 marks, very frequent.
- and roles — 3 marks, frequent.