Calibration library and code for the paper: Verified Uncertainty Calibration. Ananya Kumar, Percy Liang, Tengyu Ma. NeurIPS 2019 (Spotlight).
141
stars
20
forks
source link
When a bin has samples of the same probability #19
Open
forrestbao opened 4 months ago
Hi,
I just came across an interesting corner case: some bins have samples of the same probability.
The code below will reproduce the error.
The shape of the first row in calibrator._bins is (3,) instead of (4,) as expected.
We looked into the reason and found that the last two bins have samples of the same probabilities.
We are wondering whether in such a case, an error message should be thrown out or the probabilities should have been added with noises.