API Reference¶
Streaming Calibration¶
- class streamcal.StreamingIsotonicCalibrator(n_buckets=100, alpha=0.1)[source]¶
Streaming isotonic calibration with EMA + PAV.
Maintains exponential moving average of bucket outcome rates, then projects onto monotonic cone via PAV. Adapts quickly to drift while guaranteeing monotonicity.
- Parameters:
n_buckets (int) – Number of buckets for discretizing probability space.
alpha (float) – EMA smoothing factor. Larger values adapt faster to drift but have more variance. Smaller values are more stable.
Batch Calibration¶
- class streamcal.IsotonicCalibrator[source]¶
Isotonic regression calibrator (batch refit every batch).
- class streamcal.TemperatureScaling[source]¶
Temperature scaling calibrator (batch refit every batch).