ECE Sub-Box: How the same forecast calculates zero and non-zero errors
Calculates the calibration summary under different sub-boxes, explaining errors offset and small sample deviations.
Learning objectives and first steps2 objectives . 1 first fix
Try to do it after reading
- Calculates the calibration summary under different sub-boxes
- Explanatory error offset and small sample deviation
Suggested first
- Classification and probabilities projections
A number depends on how to cut a box
It is expected that calibration errors will often place close projections in the same box, comparing the average forecast in the box to the actual frequency, and weighting them by the number of samples in the box. It is visual, easy to draw, but it is not the truth that is not influenced by choice. The number of boxes, boundaries, frequency or width will change the results of the limited sample; Only one of the most beautiful of these things could cover up obvious local errors.
Three answers to four points
It is projected to be [0.01.4, 0.6, 0.9] and labeled [0,1,01,1]. For one box, the average projection is 0.5, the actual rate is 0.5 and ECE is zero. If the first and the last two boxes were split into two boxes, the average projection was 0.25 and 0.75, the actual rate was 0.5 and the difference per box was 0.25, so ECE was 0.25. If each dot is a single box, the absolute error is 0.1, 0.6, 0.1 and an average of 0.35. The data and models remain unchanged, and ECE can be changed from 0 to 0.25 or 0.35. This is not a magic improvement in probability for any algorithm, but rather a different trade-off between error offsets and fluctuations.
The box doesn't automatically come closer to the real value
The actual rate of single-point boxes can only be 0 or 1, containing a large number of labels random and not equal to the probability of a real event in the vicinity of the projection. The box is too thick and will offset the high underestimation. Sample volumes, projected density and curve smoothness should be considered together, and the more boxes, the more scientific, cannot be used to replace statistical judgement.
Category II and multi-classification calibres
The two categories allow direct comparison of positive probabilities and event rates; Multiple classifications can also see only whether the maximum level of confidence is correct or whether the projections are correct or analysed by category, and these objectives differ. Only the confidence of the maximum category is checked, and errors in the probability of other categories may be missed. Weighted data should also be used for consistent weights in box mean values and external polymers.
Diagnostic combination
Brier or logarithmic losses, reliability maps, number of boxes and clear block rule can be reported simultaneously. ECE Smaller unassured resolution, constant predictions of overall rates can appear to be calibrated in certain population groups. If the model is used to compare monetary expectations or actions, the corresponding grouping and the output unit will also need to be checked. The deployment should be reviewed by customer segment in accordance with time and priority after drift; Selecting and calibrating sub-boxes on training data and reporting ECE in the same batch would lead to an optimistic bias. This indicator is appropriate to suggest where further checks are needed, and it is not appropriate to depart from the rules as the final decision on all probabilities quality.
Self-measurement and provocator
Is it true that a box gets ECE = 0 in this case?
No proof. The partial overestimation was offset by the overall average, with two boxes or a point-by-point summary showing different scenarios.
Is there no deviation from each sample box?
No, it's not. The single-point observation rate contains strong label noises that cannot be considered to be real probabilities, and the compartments require a fraction of the sample.
Sources and reconciliations
Definitions, methods and interfaces are available.
Figures and calculations are reorganized according to this chapter. Mathematical measurements, framework operations and real business effects are described separately in the body of the text.