.. _sphx_glr_auto_examples_over-sampling: .. _over_sampling_examples: 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. .. raw:: html
.. raw:: html
.. only:: html .. image:: /auto_examples/over-sampling/images/thumb/sphx_glr_plot_illustration_generation_sample_thumb.png :alt: :ref:`sphx_glr_auto_examples_over-sampling_plot_illustration_generation_sample.py` .. raw:: html
Sample generator used in SMOTE-like samplers
.. raw:: html
.. only:: html .. image:: /auto_examples/over-sampling/images/thumb/sphx_glr_plot_shrinkage_effect_thumb.png :alt: :ref:`sphx_glr_auto_examples_over-sampling_plot_shrinkage_effect.py` .. raw:: html
Effect of the shrinkage factor in random over-sampling
.. raw:: html
.. only:: html .. image:: /auto_examples/over-sampling/images/thumb/sphx_glr_plot_comparison_over_sampling_thumb.png :alt: :ref:`sphx_glr_auto_examples_over-sampling_plot_comparison_over_sampling.py` .. raw:: html
Compare over-sampling samplers
.. raw:: html
.. toctree:: :hidden: /auto_examples/over-sampling/plot_illustration_generation_sample /auto_examples/over-sampling/plot_shrinkage_effect /auto_examples/over-sampling/plot_comparison_over_sampling