Replies: 1 comment
-
|
The extra zero at the end comes from how
When you call That’s why you get an array like [3, 2, 4, 0] — the last element is just padding (no samples fall into a non-existent “fourth” bin). The implementation likely uses |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I was going through the implementation of
calibration_curvefunction to compute expected calibration error. It has a logic like this:I am confused about
minlength=len(bins). I expectbin_totalarray to be the same length as the number of bins, but settingminlengthtolen(bins)makes its lengthn_bins + 1.For example, see sample example:
Here,
but 0 does not mean anything.
Am I misunderstanding something, otherwise, why is this extra zero introduced?
Beta Was this translation helpful? Give feedback.
All reactions