How do class weights adjust the soft-margin SVM objective to handle class imbalance?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks how per-class weights change the soft-margin SVM objective and its dual when one class is much rarer than the other. Tests whether you can connect slack penalties to boundary placement, choose weights such as inverse frequency, pick suitable metrics, and explain the limits of weighting for probabilities and separable data.