Papers › MAPIE: an open-source library for distribution-free uncertainty quantification

MAPIE: an open-source library for distribution-free uncertainty quantification

25 Jul 2022arXiv:2207.12274archive 2025-07-28

Vianney Taquet, Vincent Blot, Thomas Morzadec, Louis Lacombe, Nicolas Brunel

Estimating uncertainties associated with the predictions of Machine Learning (ML) models is of crucial importance to assess their robustness and predictive power. In this submission, we introduce MAPIE (Model Agnostic Prediction Interval Estimator), an open-source Python library that quantifies the uncertainties of ML models for single-output regression and multi-class classification tasks. MAPIE implements conformal prediction methods, allowing the user to easily compute uncertainties with strong theoretical guarantees on the marginal coverages and with mild assumptions on the model or on the underlying data distribution. MAPIE is hosted on scikit-learn-contrib and is fully "scikit-learn-compatible". As such, it accepts any type of regressor or classifier coming with a scikit-learn API. The library is available at: https://github.com/scikit-learn-contrib/MAPIE/.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2207.12274")

Code

Syntology Ran 1 of 16 code samples harvested from 3 repositories linked to this paper; 15 have no recorded run. Of those that ran: 1 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 1 ran; community (archive-listed): 4 samples from 2 repositories, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

scikit-learn-contrib/mapie officialmentioned in papermentioned on GitHubpytorchBSD-3-Clause report
adamzenith/mapie mentioned on GitHubBSD-3-Clause report
yongsukyee/uncertain_blackholemass mentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 1 ran; 0 honoured the contract we drafted; 15 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran
15unverified

Licence: 0 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

binary_search scikit-learn-contrib/MAPIE/mapie/conditional_conformal_prediction.py official repository ran BSD-3-Clause (permissive) · a9044f6ed0707c0e · report
aggregate_all scikit-learn-contrib/MAPIE/mapie/aggregation_functions.py official repository unverified BSD-3-Clause (permissive) · 66f692c73dcbd942 · report
calc_p0p1 scikit-learn-contrib/MAPIE/mapie/_venn_abers.py official repository unverified BSD-3-Clause (permissive) · 6f7ded28f4c6c1b3 · report
calc_probs scikit-learn-contrib/MAPIE/mapie/_venn_abers.py official repository unverified BSD-3-Clause (permissive) · 5b8fe21e0125d9b8 · report
find_best_predict_param scikit-learn-contrib/MAPIE/mapie/risk_control/methods.py official repository unverified BSD-3-Clause (permissive) · a2bb84a5fe600e0f · report
finish_dual_setup scikit-learn-contrib/MAPIE/mapie/conditional_conformal_prediction.py official repository unverified BSD-3-Clause (permissive) · 49ea430561d4d108 · report
generate_gaussian_stream scikit-learn-contrib/MAPIE/mapie/_example_utils.py official repository unverified BSD-3-Clause (permissive) · e6c7592cd0791688 · report
get_r_hat_plus scikit-learn-contrib/MAPIE/mapie/risk_control/methods.py official repository unverified BSD-3-Clause (permissive) · 6295b2fca2a2f52f · report
phi1D scikit-learn-contrib/MAPIE/mapie/aggregation_functions.py official repository unverified BSD-3-Clause (permissive) · 2a23df2daa0c7540 · report
phi2D scikit-learn-contrib/MAPIE/mapie/aggregation_functions.py official repository unverified BSD-3-Clause (permissive) · d8b1ed0ae7688ea2 · report
predict_proba_prefitted_va scikit-learn-contrib/MAPIE/mapie/_venn_abers.py official repository unverified BSD-3-Clause (permissive) · 918739b050721db8 · report
setup_cvx_problem scikit-learn-contrib/MAPIE/mapie/conditional_conformal_prediction.py official repository unverified BSD-3-Clause (permissive) · 96d5c3074fa9e2ec · report
ax_square yongsukyee/uncertain_blackholemass/uncertain_blackholemass/lib/plot_utils.py community (archive-listed) unverified MIT (permissive) · bb9194333fcc67cf · report
check_cv adamzenith/mapie/mapie/utils.py community (archive-listed) unverified BSD-3-Clause (permissive) · 19cdebfeea2d4d3b · report
get_config yongsukyee/uncertain_blackholemass/uncertain_blackholemass/lib/get_config.py community (archive-listed) unverified MIT (permissive) · b25bfaf22f41d2e6 · report
optimize_regressor yongsukyee/uncertain_blackholemass/uncertain_blackholemass/run_uqregresor.py community (archive-listed) unverified MIT (permissive) · 9880305cf7c5da7c · report

Tasks

Conformal PredictionMulti-class ClassificationUncertainty Quantification

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections