smote oversampling technique code example
Example: oversampling using smote
# oversampling using adasyn
from imblearn.over_sampling import ADASYN
ada = ADASYN(random_state = 42)
x_train_ada, y_train_ada = ada.fit_resample(x_train,y_train)
# oversampling using adasyn
from imblearn.over_sampling import ADASYN
ada = ADASYN(random_state = 42)
x_train_ada, y_train_ada = ada.fit_resample(x_train,y_train)