SMOTE oversampling for imbalanced modeling data

Four Oversampling and Under-sampling Methods for Imbalanced Classification Using Python

This step-by-step tutorial will explain how to use oversampling and under-sampling in the Python imblearn library to adjust the ratio between the majority and minority classes.