.. _sphx_glr_auto_examples_under-sampling:
.. _under_sampling_examples:
Example using under-sampling class methods
==========================================
Under-sampling refers to the process of reducing the number of samples in the majority classes.
The implemented methods can be categorized into 2 groups: (i) fixed under-sampling and (ii) cleaning under-sampling.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /auto_examples/under-sampling/images/thumb/sphx_glr_plot_illustration_tomek_links_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_under-sampling_plot_illustration_tomek_links.py`
.. raw:: html
Illustration of the definition of a Tomek link
.. raw:: html
.. only:: html
.. image:: /auto_examples/under-sampling/images/thumb/sphx_glr_plot_illustration_nearmiss_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_under-sampling_plot_illustration_nearmiss.py`
.. raw:: html
Sample selection in NearMiss
.. raw:: html
.. only:: html
.. image:: /auto_examples/under-sampling/images/thumb/sphx_glr_plot_comparison_under_sampling_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_under-sampling_plot_comparison_under_sampling.py`
.. raw:: html
Compare under-sampling samplers
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
/auto_examples/under-sampling/plot_illustration_tomek_links
/auto_examples/under-sampling/plot_illustration_nearmiss
/auto_examples/under-sampling/plot_comparison_under_sampling