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.

Effect of the shrinkage factor in random over-sampling
Effect of the shrinkage factor in random over-sampling