Skip to content
ML Academy

Classical ML, validation, metrics, interpretation, debugging · insight-0149

Recalibrate after resampling or class weighting, because both inflate predicted risk

Evidence type
empirical finding
Difficulty
medium
Roles
Data scientist, ML engineer
Industries
healthcare, banking

Summary: situation, action, reason, boundary

  1. Situation

    You trained with SMOTE, undersampling, class_weight='balanced', is_unbalance or scale_pos_weight, and now use predict_proba.

  2. Action

    Recalibrate on held-out data with the true class distribution, or correct for the known sampling ratio; if probabilities matter more than ranking, try training without rebalancing.

  3. Reason

    Rebalancing changes the effective prior the model learns, so posterior probabilities are shifted toward the minority class.

  4. Boundary

    Risk scores, no-show and fraud probabilities, any expected-value decision built on rebalanced models.

Symptom or risk

Probabilities reflect the artificial training prevalence; predicted risk for the rare class is overestimated and expected-cost thresholds misfire.

Exceptions

If only ranking or a tuned threshold is used, discrimination may be fine without recalibration.

Trade-offs

Recalibration needs untouched held-out data; prior correction is cheap but assumes the sampling ratio is known exactly.

Pitfalls

Calibrating on a resampled validation set, which reproduces the distortion.

Lessons and concepts

Claims and their sources