:orphan:
.. _exchangeability_testing_examples:
All exchangeability testing examples
====================================
Following is a collection of examples demonstrating how to use MAPIE for
exchangeability testing.
.. raw:: html
.. thumbnail-parent-div-open
.. thumbnail-parent-div-close
.. raw:: html
1. Quickstart
-------------
The following examples introduce MAPIE exchangeability testing on a fixed
dataset and on an online stream.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples_exchangeability_testing/1-quickstart/images/thumb/sphx_glr_plot_exchangeability_online_thumb.png
:alt:
:ref:`sphx_glr_examples_exchangeability_testing_1-quickstart_plot_exchangeability_online.py`
.. raw:: html
Exchangeability testing on an online stream
.. raw:: html
.. only:: html
.. image:: /examples_exchangeability_testing/1-quickstart/images/thumb/sphx_glr_plot_exchangeability_fixed_dataset_thumb.png
:alt:
:ref:`sphx_glr_examples_exchangeability_testing_1-quickstart_plot_exchangeability_fixed_dataset.py`
.. raw:: html
Exchangeability testing on a fixed dataset
.. raw:: html
.. only:: html
.. image:: /examples_exchangeability_testing/1-quickstart/images/thumb/sphx_glr_plot_risk_monitoring_thumb.png
:alt:
:ref:`sphx_glr_examples_exchangeability_testing_1-quickstart_plot_risk_monitoring.py`
.. raw:: html
Detect harmful shifts with RiskMonitoring
.. thumbnail-parent-div-close
.. raw:: html
2. Advanced analysis
--------------------
The following examples use MAPIE for discussing more complex exchangeability
testing problems.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples_exchangeability_testing/2-advanced-analysis/images/thumb/sphx_glr_plot_permutation_test_with_fitted_classifier_thumb.png
:alt:
:ref:`sphx_glr_examples_exchangeability_testing_2-advanced-analysis_plot_permutation_test_with_fitted_classifier.py`
.. raw:: html
Permutation test with a fitted classifier
.. raw:: html
.. only:: html
.. image:: /examples_exchangeability_testing/2-advanced-analysis/images/thumb/sphx_glr_plot_online_martingale_tests_for_deployed_regression_model_thumb.png
:alt:
:ref:`sphx_glr_examples_exchangeability_testing_2-advanced-analysis_plot_online_martingale_tests_for_deployed_regression_model.py`
.. raw:: html
Online martingale exchangeability tests for a deployed regressor
.. raw:: html
.. only:: html
.. image:: /examples_exchangeability_testing/2-advanced-analysis/images/thumb/sphx_glr_plot_permutation_test_thumb.png
:alt:
:ref:`sphx_glr_examples_exchangeability_testing_2-advanced-analysis_plot_permutation_test.py`
.. raw:: html
Permutation test for exchangeability
.. raw:: html
.. only:: html
.. image:: /examples_exchangeability_testing/2-advanced-analysis/images/thumb/sphx_glr_plot_online_martingale_tests_for_deployed_classification_model_thumb.png
:alt:
:ref:`sphx_glr_examples_exchangeability_testing_2-advanced-analysis_plot_online_martingale_tests_for_deployed_classification_model.py`
.. raw:: html
Online martingale exchangeability tests for a deployed classifier
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
:includehidden:
/examples_exchangeability_testing/1-quickstart/index.rst
/examples_exchangeability_testing/2-advanced-analysis/index.rst
.. 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: examples_exchangeability_testing_python.zip `
.. container:: sphx-glr-download sphx-glr-download-jupyter
:download:`Download all examples in Jupyter notebooks: examples_exchangeability_testing_jupyter.zip `
.. only:: html
.. rst-class:: sphx-glr-signature
`Gallery generated by Sphinx-Gallery