Why must Platt scaling or isotonic regression be fitted on a separate calibration set?

Quick Overview

Explain why Platt scaling and isotonic regression have to be fitted on data the model did not train on. Tests understanding of optimistic training scores, the calibrator as a model of its own, train, calibration and test roles, and cross-validated calibration.

Why must Platt scaling or isotonic regression be fitted on a separate calibration set?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why must Platt scaling or isotonic regression be fitted on a separate calibration set? ```hint Compare score distributions Think about how a model's scores on rows it was trained on differ from its scores on rows it has never seen. ``` ```hint The calibrator learns too Platt scaling and isotonic regression are fitted models with their own parameters. Ask what that means for where you fit them and where you evaluate them. ``` ### What a Strong Answer Covers - Why scores on training rows are optimistically biased and what a calibrator fitted on them learns - The direction of the resulting error on unseen data - The calibrator as a model of its own: Platt's two parameters versus the flexibility and data needs of isotonic regression - Separate roles for the training, calibration and test sets, and what to measure on the test set - Cross-validated calibration when data is scarce ### Follow-up Questions - Your calibration set has only a few hundred rows. Which method would you pick, and why? - Can you calibrate on the validation set you already used for early stopping or hyperparameter tuning? - The input distribution drifts after deployment. How do you keep the probabilities calibrated? - How is expected calibration error computed, and what are its weaknesses?

Overview: Explain why Platt scaling and isotonic regression have to be fitted on data the model did not train on. Tests understanding of optimistic training scores, the calibrator as a model of its own, train, calibration and test roles, and cross-validated calibration.

Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Why must Platt scaling or isotonic regression be fitted on a separate calibration set?

What a Strong Answer Covers Guidance

  • Why scores on training rows are optimistically biased and what a calibrator fitted on them learns
  • The direction of the resulting error on unseen data
  • The calibrator as a model of its own: Platt's two parameters versus the flexibility and data needs of isotonic regression
  • Separate roles for the training, calibration and test sets, and what to measure on the test set
  • Cross-validated calibration when data is scarce

Follow-up Questions Guidance

  • Your calibration set has only a few hundred rows. Which method would you pick, and why?
  • Can you calibrate on the validation set you already used for early stopping or hyperparameter tuning?
  • The input distribution drifts after deployment. How do you keep the probabilities calibrated?
  • How is expected calibration error computed, and what are its weaknesses?