:orphan: .. _sphx_glr_examples_regression: .. _regression_examples: All regression examples ======================== Following is a collection of notebooks demonstrating how to use MAPIE. .. raw:: html
.. _sphx_glr_examples_regression_1-quickstart: .. _regression_examples_1: 1. Quickstart ---------------------- The following examples present the main functionalities of MAPIE through basic quickstart regression problems. .. raw:: html
.. only:: html .. figure:: /examples_regression/1-quickstart/images/thumb/sphx_glr_plot_toy_model_thumb.png :alt: Use MAPIE to plot prediction intervals :ref:`sphx_glr_examples_regression_1-quickstart_plot_toy_model.py` .. raw:: html
.. toctree:: :hidden: /examples_regression/1-quickstart/plot_toy_model .. raw:: html
.. only:: html .. figure:: /examples_regression/1-quickstart/images/thumb/sphx_glr_plot_compare_conformity_scores_thumb.png :alt: Use MAPIE on data with gamma distribution :ref:`sphx_glr_examples_regression_1-quickstart_plot_compare_conformity_scores.py` .. raw:: html
.. toctree:: :hidden: /examples_regression/1-quickstart/plot_compare_conformity_scores .. raw:: html
.. only:: html .. figure:: /examples_regression/1-quickstart/images/thumb/sphx_glr_plot_prefit_thumb.png :alt: Use MAPIE with a pre-trained model :ref:`sphx_glr_examples_regression_1-quickstart_plot_prefit.py` .. raw:: html
.. toctree:: :hidden: /examples_regression/1-quickstart/plot_prefit .. raw:: html
.. only:: html .. figure:: /examples_regression/1-quickstart/images/thumb/sphx_glr_plot_heteroscedastic_1d_data_thumb.png :alt: Use MAPIE on data with uneven uncertainty :ref:`sphx_glr_examples_regression_1-quickstart_plot_heteroscedastic_1d_data.py` .. raw:: html
.. toctree:: :hidden: /examples_regression/1-quickstart/plot_heteroscedastic_1d_data .. raw:: html
.. only:: html .. figure:: /examples_regression/1-quickstart/images/thumb/sphx_glr_plot_homoscedastic_1d_data_thumb.png :alt: Use MAPIE on data with constant uncertainty :ref:`sphx_glr_examples_regression_1-quickstart_plot_homoscedastic_1d_data.py` .. raw:: html
.. toctree:: :hidden: /examples_regression/1-quickstart/plot_homoscedastic_1d_data .. raw:: html
.. only:: html .. figure:: /examples_regression/1-quickstart/images/thumb/sphx_glr_plot_ts-tutorial_thumb.png :alt: Tutorial for time series :ref:`sphx_glr_examples_regression_1-quickstart_plot_ts-tutorial.py` .. raw:: html
.. toctree:: :hidden: /examples_regression/1-quickstart/plot_ts-tutorial .. raw:: html
.. _sphx_glr_examples_regression_2-advanced-analysis: .. _regression_examples_2: ----- 2. Advanced analysis -------------------- The following examples use MAPIE for discussing more complex MAPIE problems. .. raw:: html
.. only:: html .. figure:: /examples_regression/2-advanced-analysis/images/thumb/sphx_glr_plot_conformal_predictive_distribution_thumb.png :alt: Conformal Predictive Distribution with MAPIE :ref:`sphx_glr_examples_regression_2-advanced-analysis_plot_conformal_predictive_distribution.py` .. raw:: html
.. toctree:: :hidden: /examples_regression/2-advanced-analysis/plot_conformal_predictive_distribution .. raw:: html
.. only:: html .. figure:: /examples_regression/2-advanced-analysis/images/thumb/sphx_glr_plot_cqr_symmetry_difference_thumb.png :alt: The symmetric_correction parameter of ConformalizedQuantileRegressor :ref:`sphx_glr_examples_regression_2-advanced-analysis_plot_cqr_symmetry_difference.py` .. raw:: html
.. toctree:: :hidden: /examples_regression/2-advanced-analysis/plot_cqr_symmetry_difference .. raw:: html
.. only:: html .. figure:: /examples_regression/2-advanced-analysis/images/thumb/sphx_glr_plot_nested-cv_thumb.png :alt: Hyperparameters tuning with CrossConformalRegressor :ref:`sphx_glr_examples_regression_2-advanced-analysis_plot_nested-cv.py` .. raw:: html
.. toctree:: :hidden: /examples_regression/2-advanced-analysis/plot_nested-cv .. raw:: html
.. only:: html .. figure:: /examples_regression/2-advanced-analysis/images/thumb/sphx_glr_plot_timeseries_enbpi_thumb.png :alt: Time series: example of the EnbPI technique :ref:`sphx_glr_examples_regression_2-advanced-analysis_plot_timeseries_enbpi.py` .. raw:: html
.. toctree:: :hidden: /examples_regression/2-advanced-analysis/plot_timeseries_enbpi .. raw:: html
.. only:: html .. figure:: /examples_regression/2-advanced-analysis/images/thumb/sphx_glr_plot_both_uncertainties_thumb.png :alt: Estimating aleatoric and epistemic uncertainties :ref:`sphx_glr_examples_regression_2-advanced-analysis_plot_both_uncertainties.py` .. raw:: html
.. toctree:: :hidden: /examples_regression/2-advanced-analysis/plot_both_uncertainties .. raw:: html
.. only:: html .. figure:: /examples_regression/2-advanced-analysis/images/thumb/sphx_glr_plot-coverage-width-based-criterion_thumb.png :alt: Focus on intervals width :ref:`sphx_glr_examples_regression_2-advanced-analysis_plot-coverage-width-based-criterion.py` .. raw:: html
.. toctree:: :hidden: /examples_regression/2-advanced-analysis/plot-coverage-width-based-criterion .. raw:: html
.. only:: html .. figure:: /examples_regression/2-advanced-analysis/images/thumb/sphx_glr_plot_ResidualNormalisedScore_tutorial_thumb.png :alt: Focus on residual normalised score :ref:`sphx_glr_examples_regression_2-advanced-analysis_plot_ResidualNormalisedScore_tutorial.py` .. raw:: html
.. toctree:: :hidden: /examples_regression/2-advanced-analysis/plot_ResidualNormalisedScore_tutorial .. raw:: html
.. only:: html .. figure:: /examples_regression/2-advanced-analysis/images/thumb/sphx_glr_plot_conditional_coverage_thumb.png :alt: Focus on local (or "conditional") coverage :ref:`sphx_glr_examples_regression_2-advanced-analysis_plot_conditional_coverage.py` .. raw:: html
.. toctree:: :hidden: /examples_regression/2-advanced-analysis/plot_conditional_coverage .. raw:: html
.. only:: html .. figure:: /examples_regression/2-advanced-analysis/images/thumb/sphx_glr_plot_cqr_tutorial_thumb.png :alt: ConformalizedQuantileRegressor on gamma distributed data :ref:`sphx_glr_examples_regression_2-advanced-analysis_plot_cqr_tutorial.py` .. raw:: html
.. toctree:: :hidden: /examples_regression/2-advanced-analysis/plot_cqr_tutorial .. raw:: html
.. only:: html .. figure:: /examples_regression/2-advanced-analysis/images/thumb/sphx_glr_plot_coverage_validity_thumb.png :alt: Coverage validity of MAPIE for regression tasks :ref:`sphx_glr_examples_regression_2-advanced-analysis_plot_coverage_validity.py` .. raw:: html
.. toctree:: :hidden: /examples_regression/2-advanced-analysis/plot_coverage_validity .. raw:: html
.. only:: html .. figure:: /examples_regression/2-advanced-analysis/images/thumb/sphx_glr_plot_main-tutorial-regression_thumb.png :alt: Comparison between conformalized quantile regressor and cross methods :ref:`sphx_glr_examples_regression_2-advanced-analysis_plot_main-tutorial-regression.py` .. raw:: html
.. toctree:: :hidden: /examples_regression/2-advanced-analysis/plot_main-tutorial-regression .. raw:: html
.. _sphx_glr_examples_regression_3-scientific-articles: .. _regression_examples_3: ----- 3. Simulations from scientific articles --------------------------------------- The following examples reproduce the simulations from the scientific articles that introduce the methods implemented in MAPIE for regression settings. .. raw:: html
.. only:: html .. figure:: /examples_regression/3-scientific-articles/images/thumb/sphx_glr_plot_barber2020_simulations_thumb.png :alt: Predictive inference with the jackknife+, Foygel-Barber et al. (2020) :ref:`sphx_glr_examples_regression_3-scientific-articles_plot_barber2020_simulations.py` .. raw:: html
.. toctree:: :hidden: /examples_regression/3-scientific-articles/plot_barber2020_simulations .. raw:: html
.. only:: html .. figure:: /examples_regression/3-scientific-articles/images/thumb/sphx_glr_plot_zaffran2022_comparison_thumb.png :alt: Adaptive conformal predictions for time series, Zaffran et al. (2022) :ref:`sphx_glr_examples_regression_3-scientific-articles_plot_zaffran2022_comparison.py` .. raw:: html
.. toctree:: :hidden: /examples_regression/3-scientific-articles/plot_zaffran2022_comparison .. raw:: html
.. only:: html .. figure:: /examples_regression/3-scientific-articles/images/thumb/sphx_glr_plot_kim2020_simulations_thumb.png :alt: Predictive inference is free with the Jackknife+-after-Bootstrap, Kim et al. (2020) :ref:`sphx_glr_examples_regression_3-scientific-articles_plot_kim2020_simulations.py` .. raw:: html
.. toctree:: :hidden: /examples_regression/3-scientific-articles/plot_kim2020_simulations .. raw:: html
.. _sphx_glr_examples_regression_4-other-notebooks: .. _regression_examples_5: ----- 4. Other notebooks -------------------------------------------- This section lists a series of Jupyter notebooks hosted on the MAPIE Github repository that can be run on Google Colab: - `Estimating prediction intervals for time series forecast with EnbPI and ACI `_ .. raw:: html
.. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-gallery .. container:: sphx-glr-download sphx-glr-download-python :download:`Download all examples in Python source code: examples_regression_python.zip ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download all examples in Jupyter notebooks: examples_regression_jupyter.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_