:orphan:
.. _examples-index:
**General-purpose and introductory examples for the imbalanced-ensemble toolbox.**
**The examples gallery is still under construction.** Please refer to APIs for more detailed guidelines of how to use
``imbens``.
.. raw:: html
.. thumbnail-parent-div-open
.. thumbnail-parent-div-close
.. raw:: html
Basic usage examples
--------------------
Quick start with :mod:`imbens`.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /auto_examples/basic/images/thumb/sphx_glr_plot_basic_visualize_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_basic_plot_basic_visualize.py`
.. raw:: html
Visualize an ensemble classifier
.. raw:: html
.. only:: html
.. image:: /auto_examples/basic/images/thumb/sphx_glr_plot_training_log_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_basic_plot_training_log.py`
.. raw:: html
Customize ensemble training log
.. raw:: html
.. only:: html
.. image:: /auto_examples/basic/images/thumb/sphx_glr_plot_basic_example_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_basic_plot_basic_example.py`
.. raw:: html
Train and predict with an ensemble classifier
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
/auto_examples/basic/plot_basic_visualize
/auto_examples/basic/plot_training_log
/auto_examples/basic/plot_basic_example
Classification examples
-----------------------
Examples about using classification algorithms in :mod:`imbens.ensemble` module.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /auto_examples/classification/images/thumb/sphx_glr_plot_digits_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_classification_plot_digits.py`
.. raw:: html
Classify class-imbalanced hand-written digits
.. raw:: html
.. only:: html
.. image:: /auto_examples/classification/images/thumb/sphx_glr_plot_probability_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_classification_plot_probability.py`
.. raw:: html
Plot probabilities with different base classifiers
.. raw:: html
.. only:: html
.. image:: /auto_examples/classification/images/thumb/sphx_glr_plot_cost_matrix_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_classification_plot_cost_matrix.py`
.. raw:: html
Customize cost matrix
.. raw:: html
.. only:: html
.. image:: /auto_examples/classification/images/thumb/sphx_glr_plot_sampling_schedule_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_classification_plot_sampling_schedule.py`
.. raw:: html
Use dynamic resampling schedule
.. raw:: html
.. only:: html
.. image:: /auto_examples/classification/images/thumb/sphx_glr_plot_resampling_target_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_classification_plot_resampling_target.py`
.. raw:: html
Customize resampling target
.. raw:: html
.. only:: html
.. image:: /auto_examples/classification/images/thumb/sphx_glr_plot_classifier_comparison_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_classification_plot_classifier_comparison.py`
.. raw:: html
Classifier comparison
.. raw:: html
.. only:: html
.. image:: /auto_examples/classification/images/thumb/sphx_glr_plot_torch_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_classification_plot_torch.py`
.. raw:: html
Classification with PyTorch Neural Network
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
/auto_examples/classification/plot_digits
/auto_examples/classification/plot_probability
/auto_examples/classification/plot_cost_matrix
/auto_examples/classification/plot_sampling_schedule
/auto_examples/classification/plot_resampling_target
/auto_examples/classification/plot_classifier_comparison
/auto_examples/classification/plot_torch
Dataset examples
----------------
Examples concerning the :mod:`imbens.datasets` module.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /auto_examples/datasets/images/thumb/sphx_glr_plot_generate_imbalance_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_datasets_plot_generate_imbalance.py`
.. raw:: html
Generate an imbalanced dataset
.. raw:: html
.. only:: html
.. image:: /auto_examples/datasets/images/thumb/sphx_glr_plot_make_imbalance_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_datasets_plot_make_imbalance.py`
.. raw:: html
Make a dataset class-imbalanced
.. raw:: html
.. only:: html
.. image:: /auto_examples/datasets/images/thumb/sphx_glr_plot_make_imbalance_digits_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_datasets_plot_make_imbalance_digits.py`
.. raw:: html
Make digits dataset class-imbalanced
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
/auto_examples/datasets/plot_generate_imbalance
/auto_examples/datasets/plot_make_imbalance
/auto_examples/datasets/plot_make_imbalance_digits
Evaluation examples
-------------------
Examples illustrating how classification using imbalanced dataset can be done.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /auto_examples/evaluation/images/thumb/sphx_glr_plot_classification_report_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_evaluation_plot_classification_report.py`
.. raw:: html
Evaluate classification by compiling a report
.. raw:: html
.. only:: html
.. image:: /auto_examples/evaluation/images/thumb/sphx_glr_plot_metrics_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_evaluation_plot_metrics.py`
.. raw:: html
Metrics specific to imbalanced learning
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
/auto_examples/evaluation/plot_classification_report
/auto_examples/evaluation/plot_metrics
Pipeline examples
-----------------
Example of how to use the a pipeline to include under-sampling with `scikit-learn` estimators.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /auto_examples/pipeline/images/thumb/sphx_glr_plot_pipeline_classification_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_pipeline_plot_pipeline_classification.py`
.. raw:: html
Usage of pipeline embedding samplers
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
/auto_examples/pipeline/plot_pipeline_classification
Visualizer examples
-------------------
Examples concerning the :mod:`imbens.visualizer`. module.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /auto_examples/visualizer/images/thumb/sphx_glr_plot_confusion_matrix_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_visualizer_plot_confusion_matrix.py`
.. raw:: html
Plot confusion matrix
.. raw:: html
.. only:: html
.. image:: /auto_examples/visualizer/images/thumb/sphx_glr_plot_performance_curve_thumb.png
:alt:
:ref:`sphx_glr_auto_examples_visualizer_plot_performance_curve.py`
.. raw:: html
Plot performance curves
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
/auto_examples/visualizer/plot_confusion_matrix
/auto_examples/visualizer/plot_performance_curve
.. only:: html
.. container:: sphx-glr-footer sphx-glr-footer-gallery
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download all examples in Python source code: auto_examples_python.zip `
.. container:: sphx-glr-download sphx-glr-download-jupyter
:download:`Download all examples in Jupyter notebooks: auto_examples_jupyter.zip `
.. only:: html
.. rst-class:: sphx-glr-signature
`Gallery generated by Sphinx-Gallery