-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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] [ENH] Add sample_indices_ for SMOTE/ADASYN classes #933
Conversation
Adding attribute sample_indices to SMOTE/ADASYN classes that contains tuple of samples used to generate new sample. For the samples for original dataset it is index of original sample.
Codecov ReportBase: 96.51% // Head: 96.38% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #933 +/- ##
==========================================
- Coverage 96.51% 96.38% -0.13%
==========================================
Files 103 95 -8
Lines 7280 6362 -918
Branches 1071 901 -170
==========================================
- Hits 7026 6132 -894
+ Misses 147 146 -1
+ Partials 107 84 -23
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@glemaitre could you please look at this failed tests? 4 of them are caused by outdated library which sends FutureWarning error and Windows test is failed because of Install error. |
… more tests are added
Adding attribute sample_indices to SMOTE/ADASYN classes that contains tuple of samples used to generate new sample. For the samples for original dataset it is index of original sample.
Reference Issue
Fixes #772
What does this implement/fix? Explain your changes.
get_sample_indices()
function that returns a tuple of sample indices from which the new sample was created. For the original samples of dataset then[index, 0]
is returned. Implemented for SMOTE and ADASYN class.get_sample_indices()
function.