Example using over-sampling class methods#
Data balancing can be performed by over-sampling such that new samples are generated in the minority class to reach a given balancing ratio.
![](../../_images/sphx_glr_plot_shrinkage_effect_thumb.png)
Effect of the shrinkage factor in random over-sampling
Effect of the shrinkage factor in random over-sampling