crepes 0.7.1
v0.7.1 (21/09/2024)
Features
-
The
calibratemethods of the classesWrapClassifierandWrapRegressornow take an additional argumentseed, for setting the state of the random number generator. This allows forpredict_pandpredict_setof the former class andpredict_intandpredict_cpsof the latter class as well asevaluatefor both classes to become deterministic. The methodspredict_p,predict_set,predict_int,predict_cpsandevaluateof these classes also have an argumentseed, which can be used to over-ride any setting by thecalibratemethod. In addition, the corresponding methods of the classesConformalClassifierandConformalPredictiveSystemalso include the argumentseedfor the same purpose. (The methods ofConformalRegressorcurrently contains no stochastic components and there is hence no need for a seed.) Thanks to @egonmedhatten and @tuvelofstrom for suggesting this extension. -
The
predict_pmethods of the classesConformalClassifierandWrapClassifiernow takes an optional argumentsmoothingto allow for generating both smoothed and non-smoothed p-values (default:smoothing=True). -
The default value for the parameter
smoothingof thepredict_setandevaluatemethods has been changed toTrue. -
The class
DifficultyEstimatorincrepes.extrasnow includes a parameterffor providing a function to compute the difficulty estimates.
Fixes
- The documentation for the class
MondrianCategorizerincrepes.extrashas been corrected.