Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created April 25, 2021 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/76f16916d31c097f230a8d4d5414406c to your computer and use it in GitHub Desktop.
Save amankharwal/76f16916d31c097f230a8d4d5414406c to your computer and use it in GitHub Desktop.
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