Skip to main content
Module 7 · Lesson 4 of 535/56 in the course~20 min
Module lessons (4/5)

Support vector machines

Lesson preview5 hands-on exercises readyMachine Learning: from first principles to practice · Module 7 — Trees, ensembles and SVMs

Maximum margin, the C parameter and kernels.

What you'll learn in this lesson

  • Explain the maximum-margin idea behind support vector machines.
  • Describe what the parameter C and the kernel control.
  • Train a scaled linear and RBF SVM.

Overview

Many lines can separate two classes. A support vector machine (SVM) picks the one with the widest empty "street" (the margin) between the classes. A wide margin tends to generalise better, because small changes in the data are less likely to flip the prediction. Only the points that touch the margin, the support vectors, define the boundary;…

Real data overlap, so a perfect street is impossible. The parameter C sets the trade-off:

Sections covered in this lesson

  1. 1The hook: the widest street
  2. 2C: how strict is the margin?
  3. 3Kernels: curved boundaries
  4. 4Comparing linear vs. kernel SVMs
  5. 5Try it: interactive SVM margin & kernel lab
  6. 6Progressive examples: margins, support vectors, and kernels
Pro Lesson · Module 7 — Trees, ensembles and SVMs

Unlock "Support vector machines" and the full Machine Learning: from first principles to practice curriculum

Maximum margin, the C parameter and kernels.

Unlock all 5 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.

  • Instant access to all advanced modules in Machine Learning: from first principles to practice plus 17 more courses
  • Hands-on browser exercises with automated test suites and solutions
  • 14-day money-back guarantee processed via Paddle.com

14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.