MST0052 · Lecture 11 · Fall 2026
90 minutes · one model family · four workflows
01
The few points that pin the boundary in place.
Delete them — nothing moves.
02
Wants a wide margin.
Charges for violations.
Violations are cheap → wide margin, smooth. High bias, low variance.
Violations are expensive → narrow margin, contorts. Low bias, high variance.
03
Reference — screenshot this
Default: RBF. When p ≫ n, or for text: linear.
04
The pattern · L7 machinery, new model
gamma='scale' = 1 / (p · Var(X)) — a genuinely sensible default.
gamma='scale'
Pitfall 1 · Kernels live on distances
Every feature votes in the kernel.
One wide-range feature owns every distance.
Pitfall 2 · SVC has no native probabilities
Pitfall 3 · C and gamma move together
Any kernel — training O(n²) to O(n³). Fine to ~10⁴ rows.
Linear kernel only, different solver — scales far further. First choice for text.
Memory grows with the support-vector count — a large fraction of n on noisy data.
LinearSVC
05
load_breast_cancer() · 80/20 stratified · random_state=42 · 5-fold CV · f1
Workflow 1 · One knob
Workflow 2 · C × gamma, 16 cells
Workflow 3 · Degree 3
Workflow 4 · L10's champion, unchanged
Test f1 · CV mean ± std underneath
L10's random forest: test 0.958 · CV 0.972 ± 0.014 — behind by less than one fold-std at CV time.
CV f1 gaps · same grid, three knobs
06
L12 returns to trees: boosting swaps averaging for sequential correction.
Novelty detection · OneClassSVM
Same model, different knob · nu
Regression · epsilon-insensitive loss
Escape hatch · Nystroem / RBFSampler
Probabilities · Platt scaling under the hood
Multi-class · one-vs-one under the hood