Skip to content

Instantly share code, notes, and snippets.

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