Skip to content

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

Merged
glemaitre merged 7 commits intoscikit-learn-contrib:masterfrom
glemaitre:support_categorical_inference
Jul 8, 2023
Merged

ENH add auto inference based on pd.CategoricalDtype in SMOTENC#1009
glemaitre merged 7 commits intoscikit-learn-contrib:masterfrom
glemaitre:support_categorical_inference

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