Created
January 23, 2024 13:02
-
-
Save wibowotangara/bb4f83af72daf1c7171c2ee7ef5aef8c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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