Skip to content

MemoryError SMOTENC #688

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
DataSenseiAryan opened this issue Feb 21, 2020 · 1 comment
Closed

MemoryError SMOTENC #688

DataSenseiAryan opened this issue Feb 21, 2020 · 1 comment

Comments

@DataSenseiAryan
Copy link

Hi,

Thanks for this wonderful package to handle class imbalance. I am trying to use SMOTENC but getting stuck in "memory error" during "fit_resample" method. I have already converted the dtypes and made them as small as possible even though this issue persist. On contrary if i use SMOTE it's working fine on the same data. I've 31 GB RAM and data shape is (98000,48), its around 6.5 MB on disk. I am using python 3.5 and imblearn version is '0.4.2'. can somebody suggest some hack to deal with issue. Thanks.

Originally posted by @atendra12 in #33 (comment)

Did you solved this sir? I am having same issue.

@glemaitre
Copy link
Member

Basically, if you make SMOTE generate more samples that you have RAM, there is nothing that we can do. You might want to tune the sampling_strategy to limit the number of samples to create.

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