Skip to content

Commit e85c5a5

Browse files
Merge branch 'scikit-learn-contrib:master' into master
2 parents 583695f + 244ba08 commit e85c5a5

File tree

71 files changed

+3402
-653
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+3402
-653
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.3.1
2+
current_version = 0.3.2
33
commit = True
44
tag = True
55

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Please describe the tests that you ran to verify your changes. Provide instructi
2020
- [ ] Test A
2121
- [ ] Test B
2222

23-
# Checklist:
23+
# Checklist
2424

2525
- [ ] I have read the [contributing guidelines](https://github.com/simai-ml/MAPIE/blob/master/CONTRIBUTING.rst)
2626
- [ ] I have updated the [HISTORY.rst](https://github.com/simai-ml/MAPIE/blob/master/HISTORY.rst) and [AUTHORS.rst](https://github.com/simai-ml/MAPIE/blob/master/AUTHORS.rst) files

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ coverage.xml
6767
doc/_build/
6868
doc/generated/
6969

70+
# Notebooks checkpoints
71+
**.ipynb_checkpoints
72+
7073
# PyBuilder
7174
target/
7275

@@ -76,3 +79,6 @@ target/
7679
# Images
7780
*.png
7881
*.jpeg
82+
83+
# ZIP files
84+
*.zip

HISTORY.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,18 @@
22
History
33
=======
44

5-
0.3.2 (2021-XX-XX)
5+
0.3.2 (2022-03-11)
66
------------------
77
* Refactorize unit tests
88
* Add "naive" and "top-k" methods in MapieClassifier
99
* Include J+aB method in regression tutorial
1010
* Add MNIST example for classification
11+
* Add cross-conformal for classification
12+
* Add `notebooks` folder containing notebooks used for generating documentation tutorials
13+
* Uniformize the use of matrix k_ and add an argument "ensemble" to method "predict" in regression.py
14+
* Add replication of the Chen Xu's tutorial testing Jackknife+aB vs Jackknife+
15+
* Add Jackknife+-after-Bootstrap documentation
16+
* Improve scikit-learn pipelines compatibility
1117

1218
0.3.1 (2021-11-19)
1319
------------------

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ coverage:
1212
pytest -vs --doctest-modules --cov-branch --cov=mapie --cov-report term-missing --pyargs mapie
1313

1414
doc:
15-
$(MAKE) clean -C doc
1615
$(MAKE) html -C doc
1716

1817
build:

README.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,14 @@
3838
MAPIE - Model Agnostic Prediction Interval Estimator
3939
====================================================
4040

41-
**MAPIE** allows you to easily estimate prediction intervals (or prediction sets) using your favourite scikit-learn-compatible model for
41+
**MAPIE** allows you to easily estimate prediction intervals (or prediction sets)
42+
using your favourite scikit-learn-compatible model for
4243
single-output regression or multi-class classification settings.
4344

44-
Prediction intervals output by **MAPIE** encompass both aleatoric and epistemic uncertainties and are backed by strong theoretical guarantees [1-5].
45+
Prediction intervals output by **MAPIE** encompass both aleatoric and epistemic
46+
uncertainties and are backed by strong theoretical guarantees thanks to conformal
47+
prediction methods [1-5].
48+
4549

4650
🔗 Requirements
4751
===============

doc/api.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@ Metrics
3131

3232
metrics.regression_coverage_score
3333
metrics.classification_coverage_score
34+
metrics.regression_mean_width_score
35+
metrics.classification_mean_width_score
3436

doc/conf.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# All configuration values have a default; values that are commented out
1313
# serve to show the default.
1414

15-
import sys
1615
import os
16+
import sys
1717

1818
import sphinx_gallery
1919
import sphinx_rtd_theme
@@ -48,9 +48,11 @@
4848
# see https://github.com/numpy/numpydoc/issues/69
4949
numpydoc_show_class_members = False
5050

51+
from distutils.version import LooseVersion
52+
5153
# pngmath / imgmath compatibility layer for different sphinx versions
5254
import sphinx
53-
from distutils.version import LooseVersion
55+
5456
if LooseVersion(sphinx.__version__) < LooseVersion("1.4"):
5557
extensions.append("sphinx.ext.pngmath")
5658
else:
@@ -78,14 +80,14 @@
7880

7981
# General information about the project.
8082
project = u"MAPIE"
81-
copyright = u"2021, Quantmetry"
83+
copyright = u"2022, Quantmetry"
8284

8385
# The version info for the project you"re documenting, acts as replacement for
8486
# |version| and |release|, also used in various other places throughout the
8587
# built documents.
8688
#
8789
# The short X.Y version.
88-
version = "0.3.1"
90+
version = "0.3.2"
8991
# The full version, including alpha/beta/rc tags.
9092
release = version
9193

@@ -221,10 +223,8 @@
221223
latex_elements = {
222224
# The paper size ("letterpaper" or "a4paper").
223225
# "papersize": "letterpaper",
224-
225226
# The font size ("10pt", "11pt" or "12pt").
226227
# "pointsize": "10pt",
227-
228228
# Additional stuff for the LaTeX preamble.
229229
# "preamble": "",
230230
}
@@ -261,9 +261,7 @@
261261

262262
# One entry per manual page. List of tuples
263263
# (source start file, name, description, authors, manual section).
264-
man_pages = [
265-
("index", "mapie", u"MAPIE Documentation", [u"Quantmetry"], 1)
266-
]
264+
man_pages = [("index", "mapie", u"MAPIE Documentation", [u"Quantmetry"], 1)]
267265

268266
# If true, show URL addresses after external links.
269267
# man_show_urls = False
@@ -282,7 +280,7 @@
282280
u"Quantmetry",
283281
"MAPIE",
284282
"One line description of project.",
285-
"Miscellaneous"
283+
"Miscellaneous",
286284
),
287285
]
288286

@@ -302,20 +300,22 @@
302300
# Example configuration for intersphinx: refer to the Python standard library.
303301
# intersphinx configuration
304302
intersphinx_mapping = {
305-
"python": ("https://docs.python.org/{.major}".format(sys.version_info), None),
303+
"python": (
304+
"https://docs.python.org/{.major}".format(sys.version_info),
305+
None,
306+
),
306307
"numpy": ("https://docs.scipy.org/doc/numpy/", None),
307308
"matplotlib": ("https://matplotlib.org/", None),
308-
"sklearn": ("http://scikit-learn.org/stable", None)
309+
"sklearn": ("http://scikit-learn.org/stable", None),
309310
}
310311

311312
# sphinx-gallery configuration
312313
sphinx_gallery_conf = {
313-
'examples_dirs': ['../examples/regression', '../examples/classification'],
314-
'gallery_dirs': ['examples_regression', 'examples_classification'],
314+
"examples_dirs": ["../examples/regression", "../examples/classification"],
315+
"gallery_dirs": ["examples_regression", "examples_classification"],
315316
"doc_module": "mapie",
316317
"backreferences_dir": os.path.join("generated"),
317-
"reference_url": {
318-
"mapie": None}
318+
"reference_url": {"mapie": None},
319319
}
320320

321321

doc/images/comp-methods.csv

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
**Method**,**Theoretical coverage**,**Typical coverage**,**Training cost**,**Evaluation cost**
1+
**Method**,**Theoretical coverage**,**Typical coverage**,**Training cost**,**Evaluation cost**
22
**Naïve**,No guarantee,:math:`< 1-\alpha`,1,:math:`n_{test}`
33
**Jackknife**,No guarantee,:math:`\simeq 1-\alpha`,:math:`n`,:math:`n_{test}`
44
,, or :math:`< 1-\alpha` if :math:`\hat{\mu}` unstable,,
@@ -7,4 +7,6 @@
77
**CV**,No guarantee,:math:`\simeq 1-\alpha`,:math:`K`,:math:`n_{test}`
88
,, or :math:`< 1-\alpha` if :math:`\hat{\mu}` unstable,,
99
**CV+**,:math:`\geq 1-2\alpha`,:math:`\gtrsim 1-\alpha`,:math:`K`,:math:`K \times n_{test}`
10-
**CV-minmax**,:math:`\geq 1-\alpha`,:math:`> 1-\alpha`,:math:`K`,:math:`K \times n_{test}`
10+
**CV-minmax**,:math:`\geq 1-\alpha`,:math:`> 1-\alpha`,:math:`K`,:math:`K \times n_{test}`
11+
**Jackknife-aB+**,:math:`\geq 1-2\alpha`,:math:`\gtrsim 1-\alpha`,:math:`K`,:math:`K \times n_{test}`
12+
**Jackknife-aB-minmax**,:math:`\geq 1-\alpha`,:math:`> 1-\alpha`,:math:`K`,:math:`K \times n_{test}`

doc/images/quickstart_1.png

0 Bytes
Loading

0 commit comments

Comments
 (0)