Adaptive Synthetic Sampling Approach for Imbalanced Learning. Paper: ADASYN: Adaptive Synthetic Sampling Approach for Imbalanced Learning by Haibo He, Yang Bai, Edwardo A. Garcia, and Shutao Li .
Example of the code (which you get after running ADASYNtest.py):
Before:
After: