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

ENH add auto inference based on pd.CategoricalDtype in SMOTENC #1009

Merged

Conversation

glemaitre
Copy link
Member

Add the option categorical_features="auto" that detects categorical features if they are using pd.CategoricalDtype in SMOTENC estimator.

In addition, we need to make sure that we don't only have numerical features after the inference, in which case, we raise an error.

@glemaitre glemaitre merged commit e9d120a into scikit-learn-contrib:master Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant