Support Vector Machines and Support Vector Regression › Summary

Michael BrenndoerferOctober 26, 20262 min read
Machine Learning from ScratchAll chapters
Part 7 of 15Supervised Learning Beyond Linear Models
Chapter 56Support Vector Machines and Support Vector Regression › Summary
Reading section 9 of 10 · Summary · 2 minSection 9 of 10 · 2 min

Section 9 of 10 · 2 min read

Support Vector Machines and Support Vector Regression › SummarySection view · Sections in this chapter9 / 10 ↓
Reading tools Definitions, links & notes

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

Notes & comments

Support Vector Machines connect a geometric margin objective to convex optimization. For separable data, the hard-margin problem requires every functional margin to be at least one. The soft-margin problem relaxes that requirement using slack penalties. Eliminating those slacks gives the hinge-loss objective 12∥w∥2+C∑imax⁡(0,1−yif(xi))\tfrac12\|\mathbf{w}\|^2+C\sum_i\max(0,1-y_i f(\mathbf{x}_i)). This finite penalty allows violations rather than preserving the hard constraint. Dividing by nCnC gives a mean-loss objective with penalty λ∥w∥2/2\lambda\|\mathbf{w}\|^2/2, where λ=1/(nC)\lambda=1/(nC). Under that convention, larger CC means weaker relative regularization.

The Lagrangian view exposes a dual problem that depends on pairwise inner products. Replacing them by a valid PSD kernel gives a feature-space inner product and preserves concavity of the dual objective. Linear, appropriately parameterized polynomial, and RBF kernels are examples. Arbitrary similarities need not be valid, and checking one Gram matrix is not a proof for every possible input set. KKT complementarity sets the multiplier to zero for a point strictly beyond its margin hyperplane; the remaining support-vector terms determine the decision sum, although the support set may include all training examples.

Support Vector Regression uses an ε\varepsilon-insensitive loss that is zero for ∣r∣≤ε|r|\le\varepsilon and linear beyond the tube. Support vectors may lie on the tube edges as well as outside it, and their number is data dependent. This loss limits the influence of large response residuals relative to squared loss; it does not ensure robustness to high-leverage inputs or improved validation error. Choose suitable preprocessing, validate the relevant penalty and kernel settings, account for class imbalance when it matters, and assess calibration when probabilities are required. The examples also show a limit of the geometric intuition: a soft-margin optimum can be a constant classifier with w=0\mathbf{w}=0.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy