In a soft-margin support vector machine (SVM), what does the hyperparameter control?
Supervised learning, Support vector machines
Level L1 Beginner. Length One-liner. Nature Th Theoretical.
What's being asked
Whether you can link to the trade-off between a wide margin and few margin violations.
Key idea
The soft-margin SVM solves . Here and define the separating line (or plane), and the slack measures how badly point violates the margin. is the price of each unit of slack: large gives few violations and a narrow margin; small gives a wide margin with more violations.
Steps
- Write the objective and the constraints , where is the label of point .
- Explain the trade-off. The first term wants a wide margin (the margin width is ). The second wants few violations. sets the balance between them.
- Give the two limits and how is tuned: as no violation is allowed (the hard-margin SVM), whereas a small acts like strong regularisation for a simpler, smoother boundary; in practice is chosen by cross-validation.
Common mistakes
- Getting the direction backwards. A larger means less regularisation (fewer violations, narrower margin), not more.
- Calling the margin width. It changes the width only indirectly.
How long your answer should be
One sentence; add the two limits if asked.
Read this
Previous in Supervised learning: In plain words, what does the hinge loss punish in a classifier, and what is the loss for a point with correct label when the model's score for it is ?
Next in Supervised learning: A fraud dataset has 99.5% legitimate and 0.5% fraudulent transactions, and your classifier reports 99.5% accuracy. Is it a good classifier, and how would you handle the imbalance?