text_plain_output_1.png image_output_1.png
from imblearn.over_sampling import ADASYN

from imblearn.over_sampling import ADASYN
print('Initial size:', X_train.shape)
ada = ADASYN(random_state=42)
X_ada, y_ada = ada.fit_resample(X_train, y_train)
print('Resampled size:', X_ada.shape)