What is the difference between a hard-margin SVM and a soft-margin SVM?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: easy
Interview Round: Other
Overview: Asks how a hard-margin support vector machine differs from a soft-margin one. Tests whether you can write both optimization problems, explain when the hard margin fails, describe what slack variables and the penalty C change, and connect the soft margin to the hinge loss and the dual.