SMOTE
MOTE oversamples by synthesizing new samples that are close in distance to existing ones within the same class.
from imblearn.over_sampling import SMOTE
smote = SMOTE() # initializing
X_train, y_train = smote.fit_sample(X_train, y_train)
MOTE oversamples by synthesizing new samples that are close in distance to existing ones within the same class.
from imblearn.over_sampling import SMOTE
smote = SMOTE() # initializing
X_train, y_train = smote.fit_sample(X_train, y_train)