Skip to content
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

What about class imbalance in training data? #7

Open
kbenoit opened this issue Jan 27, 2020 · 2 comments
Open

What about class imbalance in training data? #7

kbenoit opened this issue Jan 27, 2020 · 2 comments

Comments

@kbenoit
Copy link

kbenoit commented Jan 27, 2020

Are there specific strategies in keras to deal with class imbalance in the training set? or any recommendations about models to be aware of when this is a problem? Many classification problems are for rare outcomes, >= 5% of the cases.

@dougmet
Copy link

dougmet commented Jan 28, 2020

I would say class imbalance is the same in keras as with any machine learning problem. So you can down/up sample outside of keras (potentially with something like {rsample}) and feed in directly. Happy to hear about other ways to do this. Maybe there’s some generator that I don’t know about yet.

@dougmet
Copy link

dougmet commented Jan 28, 2020

Nearest I could find in google https://imbalanced-learn.readthedocs.io/en/stable/generated/imblearn.keras.BalancedBatchGenerator.html but it would need some reticulating for R.

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

No branches or pull requests

2 participants