Skip to content

Instantly share code, notes, and snippets.

@amankharwal

amankharwal/class_balancing.py Secret

Created Apr 25, 2021
Embed
What would you like to do?
from imblearn.over_sampling import SMOTE
smote = SMOTE(random_state=1000)
x_, y_ = smote.fit_sample(x, y)
print(x_[y_==0].shape)
print(x_[y_==1].shape)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment