WRITE · TRACE · UNDERSTAND
Pool adjacent violations in weighted isotonic calibration
Combine equal finite scores before fitting.
Read lesson: Pool adjacent violations in weighted isotonic calibration →
Your experiment
Combine equal finite scores before fitting. Each tied score starts one block with total positive weight and total weight. Visit ascending scores and merge adjacent blocks while their positive-weight ratios decrease. Return [minimum_score, maximum_score, fitted_probability] per remaining block. Require aligned nonempty scores, binary integer labels and strictly positive finite weights. Keep equal neighboring fitted probabilities as separate blocks unless a decrease triggers a merge.
Python runs in your browser. Your draft stays on this device.
What to look for
Fit on held-out calibration data. Define prediction behavior between blocks and outside the observed range before using the mapping in a serving artifact.
Watch your code work
Ready to experimentWrite a solution or load the worked answer, then choose Trace & check.
Step through arrays, variables and training curves produced by your own Python.
