How to Combine Special Bins with Regular Bins in OptBinning #342
priyankamishra31
started this conversation in
General
Replies: 1 comment
-
Not ideal, but there is a way to that with OptBinning:
I hope that helps |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Thank you for developing and maintaining this amazing library.
I have a question about handling special bins and merging them with regular bins after the optimization process. In my scenario I want to merge the 'Special_Value' bins with one of the regular bins.
Example:
I am working with a numerical feature Income with the following details:
Special values: [-999, -1] (representing missing or erroneous data).
Target: Binary classification (e.g., 0 = no default, 1 = default).
After fitting the data using the OptimalBinning class, I obtained the following binning table:
My goal is to merge the special bin ([-999, -1]) with the second bin ([7000, 15000)) to create the following updated binning table:
Is there a way to achieve this directly using the OptBinning library's functionality?
If not, what is the recommended workflow or best practice for post-processing the binning table while ensuring the consistency of metrics like Event Rate and WoE?
Beta Was this translation helpful? Give feedback.
All reactions