Skip to content

Instantly share code, notes, and snippets.

@wibowotangara
Created January 23, 2024 13:02
Show Gist options
  • Save wibowotangara/bb4f83af72daf1c7171c2ee7ef5aef8c to your computer and use it in GitHub Desktop.
Save wibowotangara/bb4f83af72daf1c7171c2ee7ef5aef8c to your computer and use it in GitHub Desktop.
from imblearn.over_sampling import RandomOverSampler
oversample = RandomOverSampler(sampling_strategy = 'not majority')
X_train, Y_train = oversample.fit_resample(X_train, Y_train)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment