Skip to content

Borderline SMOTE-2: how does itpick neighbours from the majority class using a KNN trained only on the minorty? #861

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

Closed
solegalli opened this issue Sep 9, 2021 · 0 comments · Fixed by #1023

Comments

@solegalli
Copy link
Contributor

In Borderline SMOTE, the variant 2 is supposed to interpolate between the minority in danger and other neighbors from the minority, and then between the minority in danger and some neighbors from the majority.

In line we train a KNN only on the minority class and then derive the neighbors nns from it, which we use for the interpolation.

I understand using nns for borderline -1 and the first part of borderline-2.

But, then we use that nns to obtain the neighbors from the majority class in the second part of the borderline-2 code. But would not nns contain only neighbours from the minority? as it is derived from a knn trained only in the minority class?

Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants