Reliability Diagram Plotter: Confidence vs. Accuracy

A classifier that says "80% confident" should be right about 80% of the time — most aren't. This simulator generates a synthetic classifier's predicted probabilities from a controllable confidence slope, plots a genuine 2D reliability diagram (a confidence-vs-accuracy curve against the perfect-calibration diagonal) together with a jittered strip plot of every raw sample, and lets you apply Platt scaling or isotonic regression to recalibrate it, watching Brier score, Expected Calibration Error and Maximum Calibration Error update live as the curve moves.