Skip to content

Instantly share code, notes, and snippets.


Pranjal-Soni/undersampling Secret

Created Oct 10, 2020
What would you like to do?
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