Sabab

SMOTE

Nov 24th, 2020
530
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from imblearn.over_sampling import SMOTE
  2. smote=SMOTE('minority',random_state=0)
  3. X_train,y_train=smote.fit_sample(X_train, y_train)
  4. print(X_train.shape)
  5. print(y_train.shape)
RAW Paste Data