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
[MRG] Refactor ratio to pick up any class #290
Merged
Merged
Changes from 46 commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
4f87df5
EHN enable multiclass ratio handling
glemaitre 4e528ec
FIX simplify call to dictionary
glemaitre 4996bbb
FIX RUS done
glemaitre 3f5dffa
FIX Refactor ADASYN
glemaitre 87a630d
FIX partial
glemaitre 9825317
FIX refactor SMOTE
glemaitre b7021fc
FIX refactor SMOTE
glemaitre 8a010fb
DOC add proper docstring
glemaitre f573af3
PEP8
glemaitre a85dcff
FIX ClusterCentroids
glemaitre cabf202
FIX refactor IHT
glemaitre d2539b1
FIX Nearmiss refactoring
glemaitre 0ee50c1
FIX tomek links refactor
glemaitre 118af0e
FIX refactor OSS
glemaitre 96b102e
FIX NCR refactoring
glemaitre 8ecfd88
FIX refactor combined methods with Pipeline
glemaitre d4b9c3e
FIX combine method targetting all classes when cleaning
glemaitre f5303ca
FIX balance cascade refactoring
glemaitre 0e93429
EHN add the possibility to add a dict for ratio
glemaitre 38fe8ca
TST add test for check_ratio
glemaitre 7f076cf
TST add test for float
glemaitre d89c12d
FIX/TST adapt common test
glemaitre 039420b
TST fix IHT tests
glemaitre a31c0e1
TST fix NCR
glemaitre 02be5f5
FIX combine test
glemaitre 6fba010
TST fix balance
glemaitre f2d541a
FIX doctest
glemaitre c4d74e2
FIX doctest
glemaitre a1ba5f7
FIX solve the pickle issue
glemaitre 012d3db
FIX remove comments
glemaitre d7fb9ae
TST add test for NCR
glemaitre b691064
TST add knn balance cascade
glemaitre ecf241f
EHN add callable option for the ratio
glemaitre a048c54
DOC make doc cleaner
glemaitre acc98e8
FIX/DOC remove useless comments and clean doc
glemaitre 18bc464
DEP deprecation of ratio as float
glemaitre b9d0e5a
EHN add base class for cleaning methods
glemaitre 3f3fb16
TST add common test for multi class
glemaitre 9bcec08
MAINT downgrade sphinx for the moment
glemaitre 38e1806
TST/EHN add test for the ratio and specific ratio for cleaning sampling
glemaitre 5aa541b
EHN remove redundant code
glemaitre 7a45207
FIX warning
glemaitre 15c158c
Remove useless base class
glemaitre 834de2f
MAINT add christos back to some file
glemaitre db22871
EHN rename test and add a comment
glemaitre 38708e6
DOC add hash_X_y in the API
glemaitre 8e59009
[MRG] Incorporate chkoar remarks (#6)
massich 18f726c
[MRG] Remove the init in base class (#7)
massich 19f423a
EHN doc
glemaitre 9f3cfbd
Merge branch 'is/121' of github.com:glemaitre/imbalanced-learn into i…
glemaitre e4892ac
FIX add extension for sphinx
glemaitre 7aef770
EHN make deprecatin great again
glemaitre c5ab8b9
EHN Improve SMOTE and ADASYN
glemaitre File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that we could make all these
_vaildate_methods(estimator)
as module level functions to keep the class clean. So, it will be clean for any newcomer.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep I agree with that