Skip to content

Commit

Permalink
Merge pull request #211 from scikit-learn-contrib/doc-tutorials-in-se…
Browse files Browse the repository at this point in the history
…ctions

Add tutorials in documentation sections
  • Loading branch information
LacombeLouis authored Aug 26, 2022
2 parents 8e36db4 + e0847fe commit 04a4555
Show file tree
Hide file tree
Showing 22 changed files with 1,476 additions and 323 deletions.
6 changes: 6 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
History
=======

0.4.2 (XXXX-XX-XX)
------------------

* Add tutorial for time series
* Convert existing tutorials in .py

0.4.1 (2002-06-27)
------------------

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ lint:
flake8 . --exclude=doc

type-check:
mypy mapie examples
mypy mapie

tests:
pytest -vs --doctest-modules mapie
Expand Down
5 changes: 4 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.. -*- mode: rst -*-
|GitHubActions|_ |Codecov|_ |ReadTheDocs|_ |License|_ |PythonVersion|_ |PyPi|_ |Conda|_ |Release|_ |Commits|_
|GitHubActions|_ |Codecov|_ |ReadTheDocs|_ |License|_ |PythonVersion|_ |PyPi|_ |Conda|_ |Release|_ |Commits|_ |DOI|_

.. |GitHubActions| image:: https://github.com/scikit-learn-contrib/MAPIE/actions/workflows/test.yml/badge.svg
.. _GitHubActions: https://github.com/scikit-learn-contrib/MAPIE/actions
Expand Down Expand Up @@ -29,6 +29,9 @@
.. |Commits| image:: https://img.shields.io/github/commits-since/scikit-learn-contrib/mapie/latest/master
.. _Commits: https://github.com/scikit-learn-contrib/MAPIE/commits/master

.. |DOI| image:: https://img.shields.io/badge/10.48550/arXiv.2207.12274-B31B1B.svg
.. _DOI: https://arxiv.org/abs/2207.12274

.. image:: https://github.com/simai-ml/MAPIE/raw/master/doc/images/mapie_logo_nobg_cut.png
:width: 400
:align: center
Expand Down
Binary file modified doc/images/quickstart_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
:caption: REGRESSION

theoretical_description_regression
tutorial_regression
examples_regression/4-tutorials/plot_main-tutorial-regression
examples_regression/4-tutorials/plot_ts-tutorial
examples_regression/index
notebooks_regression

Expand All @@ -23,7 +24,8 @@
:caption: CLASSIFICATION

theoretical_description_classification
tutorial_classification
examples_classification/4-tutorials/plot_main-tutorial-classification
examples_classification/4-tutorials/plot_crossconformal
examples_classification/index
notebooks_classification

Expand Down
4 changes: 2 additions & 2 deletions doc/notebooks_classification.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ problems for computer vision settings that are too heavy to be included in the e
galleries.


1. Estimating prediction sets on the Cifar10 dataset : `notebook <https://github.com/scikit-learn-contrib/MAPIE/tree/master/notebooks/classification/Cifar10.ipynb>`_
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1. Estimating prediction sets on the Cifar10 dataset : `notebook <https://github.com/scikit-learn-contrib/MAPIE/tree/master/notebooks/classification/Cifar10.ipynb>`_
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
2 changes: 1 addition & 1 deletion doc/theoretical_description_regression.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Given some target quantile :math:`\alpha` or associated target coverage level :m
we aim at constructing a prediction interval :math:`\hat{C}_{n, \alpha}` for a new
feature vector :math:`X_{n+1}` such that

.. math::
.. math::
P \{Y_{n+1} \in \hat{C}_{n, \alpha}(X_{n+1}) \} \geq 1 - \alpha
1. The "Naive" method
Expand Down
2 changes: 1 addition & 1 deletion examples/classification/1-quickstart/README.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. _classification_examples:
.. _classification_examples_1:

1. Quickstart examples
----------------------
Expand Down
2 changes: 1 addition & 1 deletion examples/classification/2-advanced-analysis/README.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. _classification_examples:
.. _classification_examples_2:

2. Advanced analysis
--------------------
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion examples/classification/3-scientific-articles/README.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. _classification_examples:
.. _classification_examples_3:

3. Simulations from scientific articles
---------------------------------------
Expand Down
Loading

0 comments on commit 04a4555

Please sign in to comment.