Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: give universal monotonic trend to features for automatic binning #248

Open
hermanashley opened this issue Jul 7, 2023 · 2 comments
Labels
enhancement New feature or request
Projects
Milestone

Comments

@hermanashley
Copy link

Hi there,

It would be great for us if there was an option like this:

        return BinningProcess(
            categorical_variables=categorical_variables,
            variable_names=my_features,
            min_prebin_size=my_min_prebin_size,
            monotonic_trend='ascending'
        )

And ideally this would force an ascending trend for everything we want to bin.

If there is another way to quickly give all features the same monotonic trend please let me know as this would be very useful for our team! :)

@guillermo-navas-palencia guillermo-navas-palencia added this to the v0.18.0 milestone Jul 8, 2023
@guillermo-navas-palencia
Copy link
Owner

Hi @hermanashley.

The BinningProcess class has the option binning_fit_params. In the meantime, you can follow this example: http://gnpalencia.org/optbinning/tutorials/tutorial_binning_process_FICO_xAI.html (cell 8).

I will add this feature in version 0.18.0 :)

@guillermo-navas-palencia guillermo-navas-palencia added the enhancement New feature or request label Jul 8, 2023
@hermanashley
Copy link
Author

Thank you very much!

If possible, would error handling be able to display which features are not being automatically binned? We sometimes have a feature sneak in that cannot be monotonically binned, it would be great to know which ones these are so we can handle them appropriately / adjust our approach as needed.

If not possible, adding the trend parameter to the BinningProcess is still a great start for us. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
ToDo
  
Awaiting triage
Development

No branches or pull requests

2 participants