How do you interpret the learned weights of a linear SVM?

Quick Overview

Asks how to read the weight vector learned by a linear support vector machine. Tests the geometry of the separating hyperplane, what the decision score means, and when weight magnitudes can and cannot be compared across features.

How do you interpret the learned weights of a linear SVM?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How do you interpret the learned weights of a linear SVM? ```hint Geometry first Write down the decision function and ask what the weight vector is in relation to the separating hyperplane. ``` ```hint Before comparing weights Ask what, besides how much a feature matters, can make one weight larger than another. ``` ### What a Strong Answer Covers - What the weight vector is geometrically, and how the sign and size of each weight move the decision score. - What the score itself means and how it differs from a logistic regression output. - When weight magnitudes can be compared: feature scaling, correlated features and the type of regularization. - Where the interpretation stops applying, such as nonlinear kernels. ### Follow-up Questions - How would you turn linear SVM scores into calibrated probabilities? - How does the regularization strength $C$ change the weights, and can you compare weights across models trained with different $C$? - With an RBF kernel, how would you explain which features drive predictions? - Why do only the support vectors determine $w$, and what does that mean for interpreting it?

Overview: Asks how to read the weight vector learned by a linear support vector machine. Tests the geometry of the separating hyperplane, what the decision score means, and when weight magnitudes can and cannot be compared across features.

Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

How do you interpret the learned weights of a linear SVM?

What a Strong Answer Covers Guidance

  • What the weight vector is geometrically, and how the sign and size of each weight move the decision score.
  • What the score itself means and how it differs from a logistic regression output.
  • When weight magnitudes can be compared: feature scaling, correlated features and the type of regularization.
  • Where the interpretation stops applying, such as nonlinear kernels.

Follow-up Questions Guidance

  • How would you turn linear SVM scores into calibrated probabilities?
  • How does the regularization strength CC change the weights, and can you compare weights across models trained with different CC ?
  • With an RBF kernel, how would you explain which features drive predictions?
  • Why do only the support vectors determine ww , and what does that mean for interpreting it?