guillermo-navas-palencia / optbinning

Optimal binning: monotonic binning with constraints. Support batch & stream optimal binning. Scorecard modelling and counterfactual explanations.
http://gnpalencia.org/optbinning/
Apache License 2.0
452 stars 100 forks source link

How to modify the result of optimal bin? #230

Closed cfkstat closed 1 year ago

cfkstat commented 1 year ago

A special value, a missing value, and a some bin how to cmobine? In some cases, the proportion of special value and missing value is less than 5%,They're going to be combined with some numerical bin,like (-inf, 0].

guillermo-navas-palencia commented 1 year ago

Hi @cfkstat. To modify the binning results, you can use the parameter user_splits and user_splits_fixed. See tutorial: http://gnpalencia.org/optbinning/tutorials/tutorial_binary.html#User-defined-split-points