henrikbostrom / crepes

Python package for conformal prediction
BSD 3-Clause "New" or "Revised" License
448 stars 35 forks source link

Add possibility to set random seed for smoothed p-values #30

Closed egonmedhatten closed 1 month ago

egonmedhatten commented 7 months ago

Hi,

In order to ensure repdoducability of experiments, it would be useful to be able to set a random seed for the computation of smoothed p-values. In particular when working with small datasets. One solution might be to pass the seed as an optional argument to WrapClassifyer/WrapRegressor.

tuvelofstrom commented 2 months ago

I would like to second this request. I have an issue requesting this functionality in calibrated-explanations, where we get different explanations for the same instance depending on whether we make a batch explanation of multiple instances or explain one instance at a time.

henrikbostrom commented 1 month ago

Hi,

Thanks for the suggestion! This has now been fixed in version 0.7.1; please take a look!

Best regards, Henrik