How does Platt scaling estimate probabilities from SVM outputs?

Quick Overview

Asks how Platt scaling maps support vector machine decision values to calibrated probabilities. Tests knowledge of the sigmoid fit, why held-out scores and smoothed targets are used, multiclass coupling, and how scikit-learn exposes SVM probability calibration.

How does Platt scaling estimate probabilities from SVM outputs?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How does Platt scaling turn the raw outputs of a support vector machine into probability estimates? ```hint Start from the raw output What does an SVM decision value measure, and why can it not be read as a probability directly? ``` ```hint Watch which scores you fit on If the mapping is fit on the same points the SVM was trained on, how are their decision values distributed? ``` ### What a Strong Answer Covers - The form of the sigmoid, its two parameters, and how they are fit by maximum likelihood - Why the fit must use held-out or cross-validated decision values - The smoothed targets and the problem they solve - How the multiclass case is handled - Practical behavior in scikit-learn and when isotonic regression is the better choice ### Follow-up Questions - How would you check whether the calibrated probabilities are any good? - When would isotonic regression beat Platt scaling, and when would it overfit? - Why can `predict_proba` and `predict` disagree on `SVC`, and which should drive decisions? - How does temperature scaling for neural networks relate to Platt scaling?

Overview: Asks how Platt scaling maps support vector machine decision values to calibrated probabilities. Tests knowledge of the sigmoid fit, why held-out scores and smoothed targets are used, multiclass coupling, and how scikit-learn exposes SVM probability calibration.

Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

How does Platt scaling turn the raw outputs of a support vector machine into probability estimates?

What a Strong Answer Covers Guidance

  • The form of the sigmoid, its two parameters, and how they are fit by maximum likelihood
  • Why the fit must use held-out or cross-validated decision values
  • The smoothed targets and the problem they solve
  • How the multiclass case is handled
  • Practical behavior in scikit-learn and when isotonic regression is the better choice

Follow-up Questions Guidance

  • How would you check whether the calibrated probabilities are any good?
  • When would isotonic regression beat Platt scaling, and when would it overfit?
  • Why can predict_proba and predict disagree on SVC , and which should drive decisions?
  • How does temperature scaling for neural networks relate to Platt scaling?