v0.7.1 (21/09/2024)
Features
-
The
calibrate
methods of the classesWrapClassifier
andWrapRegressor
now take an additional argumentseed
, for setting the state of the random number generator. This allows forpredict_p
andpredict_set
of the former class andpredict_int
andpredict_cps
of the latter class as well asevaluate
for both classes to become deterministic. The methodspredict_p
,predict_set
,predict_int
,predict_cps
andevaluate
of these classes also have an argumentseed
, which can be used to over-ride any setting by thecalibrate
method. In addition, the corresponding methods of the classesConformalClassifier
andConformalPredictiveSystem
also include the argumentseed
for the same purpose. (The methods ofConformalRegressor
currently contains no stochastic components and there is hence no need for a seed.) Thanks to @egonmedhatten and @tuvelofstrom for suggesting this extension. -
The
predict_p
methods of the classesConformalClassifier
andWrapClassifier
now takes an optional argumentsmoothing
to allow for generating both smoothed and non-smoothed p-values (default:smoothing=True
). -
The default value for the parameter
smoothing
of thepredict_set
andevaluate
methods has been changed toTrue
. -
The class
DifficultyEstimator
increpes.extras
now includes a parameterf
for providing a function to compute the difficulty estimates.
Fixes
- The documentation for the class
MondrianCategorizer
increpes.extras
has been corrected.