Temperature Scaling Calibration
Temperature scaling recalibrates the predicted class probabilities of a trained classifier by dividing all its logits by one positive number T, chosen to minimise the negative log-likelihood on held-out calibration rows. T above 1 softens overconfident predictions, T below 1 sharpens underconfident ones; the predicted class never changes.
온도 스케일링은 이미 학습된 분류기의 로짓을 모두 하나의 양수 T로 나누어 예측 확률을 다시 맞춥니다. T는 따로 떼어 둔 보정용 행에서 음의 로그우도가 가장 작아지도록 고릅니다. T가 1보다 크면 지나치게 확신하는 예측을 누그러뜨리고, 1보다 작으면 반대로 날카롭게 하며, 예측 범주는 바뀌지 않습니다.
Are my classifier's probabilities overconfident, and how much should they be softened?
분류기의 확률이 지나치게 확신에 차 있습니까, 그렇다면 얼마나 누그러뜨려야 합니까?
The method reports the fitted temperature with a bootstrap interval and, on separate evaluation rows, the negative log-likelihood, Brier score and expected calibration error before and after scaling, with a reliability curve.
When to use Temperature Scaling Calibration
- A neural network or other classifier gives probabilities that are too extreme on new data.
- You have held-out predictions (probabilities or logits) and their true classes, for two or more classes.
When to use something else
- The miscalibration differs across the probability range or is skewed: use Beta Calibration of Classifier Probabilities
- You only want to measure calibration, not fix it: use Calibration Assessment for Predicted Probabilities
Assumptions and requirements
- Scores come from a model that did not see these rows during training
- One scalar is enough to fix the miscalibration
- Calibration and future data come from the same population
What the analysis reports
- Temperature with bootstrap 95% interval
- NLL, Brier score and expected calibration error before and after
- Accuracy (unchanged)
- Reliability curve
How to report it
Temperature scaling fitted on [value] calibration rows gave T = [value] (95% CI [value] to [value]); the expected calibration error fell from [value] to [value].
Related methods
- Beta Calibration of Classifier Probabilities
- Calibration Assessment for Predicted Probabilities
- Isotonic Regression
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with statsmodels.
독립 계산. statsmodels 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Temperature Scaling Calibration on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and predictor (feature) columns
- Price
- 250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.