Skip to content

Conversation

glemaitre
Copy link
Member

bug fix in SMOTE-NC

@pep8speaks
Copy link

Hello @glemaitre! Thanks for submitting the PR.

@Eugene1518
Copy link

Hi. I am confused with the way of SmoteNC solving categorical variables. Could you tell me the difference between using median of the std. dev, and using one hot encoder to transform categorical feature into continuous feature with Smote. If I use one hot encoder with Smote instead of SmoteNC, what's the drawback? Thanks very much

@glemaitre
Copy link
Member Author

It is the way this is proposed in the original paper to which you should refer for more detailed explanations. Be aware that OneHotEncoder does not transform a categorical feature into a continuous feature but rather encodes a categorical feature into features that do not impose any order.

@Eugene1518
Copy link

thanks~

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.

3 participants