calibration#
- SuperLSS.calibration(
- X: object | EagerFrame,
- y: NDArray,
- *,
- sample_weight: NDArray | None = None,
- offsets: Mapping[str, NDArray] | None = None,
- **kwargs: Any,
Return interval coverage, tail totals, quantile calibration and reliability.
Four questions in one payload, in the sense of Gneiting, Balabdaoui and Raftery (2007): does the central interval hold at each level, does the expected count of exceedances match the realised one at each threshold, does each predicted quantile leave the right fraction of rows above it, and is the exceedance forecast reliable (the CORP diagram of Dimitriadis, Gneiting and Jordan 2021).
sample_weightis read asresidual_set()reads it: a prior weight is inside each row’s law and the row counts at most once, and a frequency weight replicates the row. Above 100,000 occurrences CORP and the randomised coverage and quantiles read a subset of 100,000 drawn without replacement, while continuous coverage and the tail totals read every row.levels,thresholdsandquantile_gridreach the builder.