Skip to content

Commit b27e0ba

Browse files
Add scientific references for regression conformity scores (#742)
1 parent 44144de commit b27e0ba

File tree

5 files changed

+23
-3
lines changed

5 files changed

+23
-3
lines changed

HISTORY.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ History
55
1.x.x (2025-xx-xx)
66
------------------
77

8+
* Add scientific references for regression conformity scores
89
* Fix double inference when using `predict_set` function in split conformal classification
910
* Add FAQ entry in the documentation about ongoing works to extend MAPIE for LLM control
1011
* MAPIE now supports Python versions up to the latest release (currently 3.13)

doc/theoretical_description_conformity_scores.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ and the other on the left side.
3434
1. The absolute residual score
3535
------------------------------
3636

37-
The absolute residual score (:class:`mapie.conformity_scores.AbsoluteConformityScore`)
37+
The absolute residual score [1] (:class:`mapie.conformity_scores.AbsoluteConformityScore`)
3838
is the simplest and most commonly used conformal score, it translates the error
3939
of the model : in regression, it is called the residual.
4040

@@ -117,10 +117,10 @@ Key takeaways
117117
References
118118
----------
119119

120-
[1] Lei, J., G'Sell, M., Rinaldo, A., Tibshirani, R. J., & Wasserman, L. (2018). Distribution-Free
120+
[1] Lei, J., G'Sell, M., Rinaldo, A., Tibshirani, R. J. & Wasserman, L. (2018). Distribution-Free
121121
Predictive Inference for Regression. Journal of the American Statistical Association, 113(523), 1094–1111.
122122
Available from https://doi.org/10.1080/01621459.2017.1307116
123123

124-
[2] Cordier, T., Blot, V., Lacombe, L., Morzadec, T., Capitaine, A. & Brunel, N.. (2023).
124+
[2] Cordier, T., Blot, V., Lacombe, L., Morzadec, T., Capitaine, A. & Brunel, N. (2023).
125125
Flexible and Systematic Uncertainty Estimation with Conformal Prediction via the MAPIE library.
126126
Available from https://proceedings.mlr.press/v204/cordier23a.html.

mapie/conformity_scores/bounds/absolute.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ class AbsoluteConformityScore(BaseRegressionScore):
1313
1414
This is appropriate when the confidence interval is symmetrical and
1515
its range is approximatively the same over the range of predicted values.
16+
17+
References
18+
----------
19+
[1] Lei, J., G'Sell, M., Rinaldo, A., Tibshirani, R. J. & Wasserman, L..
20+
"Distribution-Free Predictive Inference for Regression."
21+
Journal of the American Statistical Association 2018.
1622
"""
1723

1824
def __init__(

mapie/conformity_scores/bounds/gamma.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ class GammaConformityScore(BaseRegressionScore):
1414
This is appropriate when the confidence interval is not symmetrical and
1515
its range depends on the predicted values. Like the Gamma distribution,
1616
its support is limited to strictly positive reals.
17+
18+
References
19+
----------
20+
[1] Cordier, T., Blot, V., Lacombe, L., Morzadec, T., Capitaine, A. & Brunel, N..
21+
"Flexible and Systematic Uncertainty Estimation with Conformal Prediction via the
22+
MAPIE library."
23+
Proceedings of Machine Learning Research 2023.
1724
"""
1825

1926
def __init__(

mapie/conformity_scores/bounds/residuals.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ class ResidualNormalisedScore(BaseRegressionScore):
3030
Warning : if the estimator provided is not fitted a subset of the
3131
calibration data will be used to fit the model (20% by default).
3232
33+
References
34+
----------
35+
[1] Lei, J., G'Sell, M., Rinaldo, A., Tibshirani, R. J. & Wasserman, L..
36+
"Distribution-Free Predictive Inference for Regression."
37+
Journal of the American Statistical Association 2018.
38+
3339
Parameters
3440
----------
3541
residual_estimator: Optional[RegressorMixin]

0 commit comments

Comments
 (0)