crepes 0.7.0
v0.7.0 (27/06/2024)
Features
-
The class
MondrianCategorizerwas added tocrepes.extras, for generating categories to be used by Mondrian conformal classifiers, regressors and predictive systems. See the documentation for the interface to objects of the class through thefitandapplymethods. -
The class
WrapRegressorhas been updated so that the methodcalibrateallows for specifying an (optional) difficulty estimator and (optional) Mondrian categorizer, which are used both for calibration and making predictions, instead of requiring that difficulty estimates and Mondrian categories are provided separately for these tasks. The methodspredict_int,predict_cpsandevaluateno longer requiresigmasandbinsto be provided for normalized and Mondrian conformal regressors and predictive systems. Thanks to @tuvelofstrom for suggestions along these lines. -
The class
WrapClassifierhas been updated so that the methodcalibrateallows for specifying an (optional) Mondrian categorizer, which is used both for calibration and making predictions. The methodspredict_p,predict_setandevaluateno longer requirebinsto be provided for Mondrian conformal classifiers.
Fix
- Label vectors represented by pandas.Series are converted to NumPy arrays to avoid indexing issues. Thanks to @valeman for pointing this out.