crepes 0.7.0
v0.7.0 (27/06/2024)
Features
-
The class
MondrianCategorizer
was 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 thefit
andapply
methods. -
The class
WrapRegressor
has been updated so that the methodcalibrate
allows 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_cps
andevaluate
no longer requiresigmas
andbins
to be provided for normalized and Mondrian conformal regressors and predictive systems. Thanks to @tuvelofstrom for suggestions along these lines. -
The class
WrapClassifier
has been updated so that the methodcalibrate
allows for specifying an (optional) Mondrian categorizer, which is used both for calibration and making predictions. The methodspredict_p
,predict_set
andevaluate
no longer requirebins
to 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.