Closed lx0531 closed 3 months ago
Hi @lx0531,
Thanks for reporting this issue. I noticed the subsample
default value has changed in recent releases of sklearn.preprocessing.KBinsDiscretizer
Until I release a new version setting subsample=None
, you can pass subsample=None
as the prebinning_kwargs
:
or use "cart" as a prebinning method. I hope this helps.
Hi @guillermo-navas-palencia ,
I added subsample=None
as the additional argument and the issue is solved. Really appreciate your help!
Hi, I encountered something similar to issue #299. More specifically, running
ContinuousOptimalBinning
with the same setting can lead to a different number of prebins and a different monotonic trend, when eventually cause a different binning output to be generated. So far I have only observed this issue when using "quantile" as theprebinning_method
. Here is an example attached below:The output when running it the first time is:
and the output at the second running becomes:
Any help and clarification is greatly appreciated, thanks!