.
to over-sample minority classes: (i) the Synthetic Minority Oversampling Technique (SMOTE) [CBHK02] and (ii) the Adaptive Synthetic (ADASYN) [HBGL08] sampling method. These algorithms can be used in the same manner: from imblearn.over_sampling import SMOTE sm = SMOTE(random_state=42) X_res, y_res =