Skip to content

Instantly share code, notes, and snippets.

@Pranjal-Soni
Created October 10, 2020 02:16
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 Pranjal-Soni/f9e4c7c4097b2a99758ceefe6016a135 to your computer and use it in GitHub Desktop.
Save Pranjal-Soni/f9e4c7c4097b2a99758ceefe6016a135 to your computer and use it in GitHub Desktop.
from imblearn.over_sampling import SMOTE
sm = SMOTE(random_state=0)
X_resampled, y_resampled = sm.fit_resample(X, y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment