5.10 Support vector machines and kernels
You can explain margins and the kernel trick.
Before:03. Data Handling & AnalysisUnlocks:06. Deep Learning10. Production & MLOps13. Capstones, Portfolio & Interviews
Support vector machines find the maximum-margin boundary, and the kernel trick lets a linear method draw non-linear boundaries without ever computing the high-dimensional features it implicitly uses. The C parameter trades margin width against violations. It sits mid-module as the elegant geometric counterpoint to the tree methods. The practical cautions are scaling — RBF kernels on unscaled features fail quietly — and size, because training cost grows steeply with the dataset.
Work through these
Maximum margin and support vectors
Rather than any separating surface, choose the one furthest from the nearest points of each class, and only those nearest points matter. That is the whole geometric idea.
Soft margin and the C parameter
Real data overlaps, so the method allows some violations at a price, and one setting controls how much. Tuning it is the main practical decision.
Kernels: linear, polynomial, RBF
Replacing dot products with a different similarity lets a linear method draw curved boundaries without ever computing coordinates in the larger space. This is one of the most elegant ideas in the subject.
SVR for regression
The same machinery adapted to predicting a number rather than a class, using a tolerance band instead of a margin. It is less commonly used and worth recognising.
Sign in to keep your progress.
Free resources
These videos are on YouTube. Opening the link takes you to YouTube's page. Pressing "Watch here" loads YouTube's player into this page — nothing loads from YouTube until you do. Either way the video comes from Google and uses much more mobile data than a page of text. Something wrong with a link here?
Links last checked 29 Aug 2026.
Stuck here?
Ask a mentor. A real person answers, and they can see exactly which topic you're on. Usually within a couple of working days.
Checking your session…
Topics shown in module order.