FIX: SMOTENC should use half of the median of the std. dev.#491
Merged
glemaitre merged 1 commit intoscikit-learn-contrib:masterfrom Oct 21, 2018
Merged
FIX: SMOTENC should use half of the median of the std. dev.#491glemaitre merged 1 commit intoscikit-learn-contrib:masterfrom
glemaitre merged 1 commit intoscikit-learn-contrib:masterfrom
Conversation
|
Hello @glemaitre! Thanks for submitting the PR.
|
glemaitre
added a commit
that referenced
this pull request
Oct 21, 2018
glemaitre
added a commit
that referenced
this pull request
Oct 21, 2018
glemaitre
added a commit
that referenced
this pull request
Oct 21, 2018
|
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 |
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. |
|
thanks~ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
bug fix in SMOTE-NC