Imblearn

SMOTE-NC

Download this notebook Synthetic Minority Oversampling TEchnique for Nominal and Continuous data What to do when our minority class is an extreme minority? This could lead to the classifier basically always predicting the majority class, but often, it is precisely the minority class that is actually interesting, e.g. in predicting cancer with image data or fraud with credit card data. We could just multiply instances of the minority class by a factor of, say, 100.