Skip to content

mapie/aci-without-infinite-bounds

Pack Severity Fix Versions
MAPIE warning none, edit by hand All versions

When TimeSeriesRegressor(method="aci") calls adapt_conformal_inference on a drifting series, consecutive misses can push the adaptive level to zero. Without allow_infinite_bounds=True, predict raises ValueError: Number of samples of the score is too low (verified on MAPIE 1.6.0).

y_pred, y_pis = model.predict(X_step, confidence_level=0.9, ensemble=True)
y_pred, y_pis = model.predict(X_step, confidence_level=0.9, ensemble=True, allow_infinite_bounds=True)

Calls to predict on a TimeSeriesRegressor(method="aci") that also calls adapt_conformal_inference in the same scope without passing allow_infinite_bounds=True.

Pass allow_infinite_bounds=True to predict, and handle infinite bounds cleanly when computing coverage or interval widths (note that mapie.metrics.regression.regression_coverage_score rejects infinite bounds, whereas xpd modeling scores outward infinite bounds as covered with non-finite width).

TimeSeriesRegressor(method="aci") with adapt_conformal_inference can drive the effective miscoverage rate to zero under drift, causing predict() to raise ValueError unless allow_infinite_bounds=True is passed.

See all rules in the MAPIE pack.