WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@tianlinhe
Copy link

Reference issue #772

What does this implement/fix? Explain your changes.

To add the sample indices of the generating samples that do not belong to the original dataset.

  • sample_indices() exposes the index of the original samples in a list
  • arg get_which_neighbors=True reveals from which random neighbor the sample was generated. For original data it returns 0, which means itself

Any other comments?

-[x] Changes pass PEP8 (no issue on the changed lines)

It is only implemented in SMOTE. If needed I am happy to include it in ADASYN.

@pep8speaks
Copy link

Hello @tianlinhe! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 303:35: E226 missing whitespace around arithmetic operator
Line 330:1: W293 blank line contains whitespace

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.

2 participants