v0.8.0 (31/03/2025)
Features
-
Semi-online inductive conformal classifiers, regressors and predictive systems, which iteratively update the calibration set after making each prediction, have been incorporated. For
WrapClassifier
, the methodspredict_p
,predict_set
andevaluate
, now include the argumentonline
together with the argumentwarm_start
, where the former enables online calibration (disabled by default) and the latter enables extending the original calibration set during online calibration (enabled by default). Similarly, forWrapRegressor
, the methodspredict_p
,predict_int
,predict_percentiles
,predict_cpds
andevaluate
include the argumentsonline
andwarm_start
. Semi-online conformal predictors are also enabled by the methodspredict_p_online
(forConformalClassifier
,ConformalRegressor
, andConformalPredictiveSystem
),predict_set_online
(forConformalClassifier
),predict_int_online
(forConformalRegressor
andConformalPredictiveSystem
),predict_percentiles_online
andpredict_cpds_online
(forConformalPredictiveSystem
). Moreover, theevaluate
method for all three types of conformal predictor now includes an additional argumentonline
, which if set to true enables online calibration. -
The method
predict_p
for generating (smoothed or non-smoothed) p-values using conformal regressors has been added. -
New methods for conformal predictive systems have been added;
predict_p
for obtaining p-values,predict_int
for obtaining prediction intervals,predict_percentiles
for obtaining percentiles, andpredict_cpds
for obtaining conformal predictive distributions. These outputs can alternatively (as before) be generated by the methodspredict
(forConformalPredictiveSystem
) andpredict_cps
(forWrapRegressor
). -
Both smoothed and non-smoothed p-values may now be output for conformal predictive systems; smoothing is the default but can be disabled by setting
smoothing=False
for the methodspredict_p
andpredict
. -
The
evaluate
method ofConformalClassifier
,ConformalRegressor
, andConformalPredictiveSystem
, as well as ofWrapClassifier
andWrapRegressor
, now includes the metricks_test
, which provides the p-value for the Kolmogorov-Smirnov test of uniformity of predicted p-values. Thanks to @egonmedhatten for the suggestion!
Fixes
- Fitted objects now contain the attribute
fitted_
to allow for proper handling in scikit-learn pipelines. Thanks to @lukethomrichardson for suggesting the fix.