All lessons in Machine Learning Engineering: Reliable Predictive Models
Margins, Support Vectors, and Kernels
Explain margin control and tune kernel scale without treating kernels as magic.
30 minutes · Free with an account · preview
What you will learn
- Compute a dispatch row's signed distance to a linear boundary and its hinge loss, and identify whether it violates the margin constraint.
- Evaluate a radial basis function decision score by hand and explain how the gamma parameter controls how local the boundary is.
- Diagnose feature-scaling and over-fitting problems in a kernel support vector classifier from training versus validation evidence.
Logistic regression on the parcel data draws a straight boundary between late and on-time dispatches and reports a probability for each row. A support vector machine (SVM) also draws a boundary, but it asks a different question: among all the boundaries that separate the classes about equally well, which one keeps the widest buffer around itself? Kernels then let the same idea bend the boundary without you hand-building squared or interaction features. This optional lesson recaps the linear decision function it needs, so you do not need any other optional branch to follow it.