Repository navigation
pyconformal 0.1.12
Highlights
- Tier 1 conformal methods (5 new pure-NumPy modules, PR #12):
ClusteredConformalClassifier(clustered.py; Ding et al., NeurIPS 2023)LocalizedConformalRegressor(localized.py; Hore & Barber, JRSS-B 2025 RLCP & Guan, Biometrika 2023 LCP)ConformalSelector(selection.py; Jin & Candès, JMLR 2023 — BH FDR control)ConformalSurvivalRegressor&kaplan_meier(survival.py; Candès, Lei & Ren, JRSS-B 2023)LabelShiftConformalClassifier&estimate_label_shift_weights(label_shift.py; Podkopaev & Ramdas, UAI 2021)
- Tier 2 conformal methods, score & conditional diagnostics (6 new pure-NumPy modules +
SOCOP+ WSC/ERT, PR #13):CopulaConformalRegressor&EllipsoidalConformalRegressor(multivariate.py)ConditionalConformalRegressor(conditional.py)ConformalEPredictor(evalues.py)ConformalDecisionControl&DecisionResult(decision.py)SOCOP(scores.py; Wang, Sun & Dobriban, ICLR 2026 — 5th classification score)ConformalITE(causal.py)ConformalLanguageFilter(llm.py;"all_factual"&"fdr"guarantees)worst_slab_coverage(WSC) &conditional_coverage_diagnostic(ERT) inpyconformal.evaluation
- Hot-path performance optimisations (PR #14):
ConformalLanguageFilter(guarantee="fdr"): 355× faster with Numba (97× pure NumPy) via exactO(N K log(N K))event-diff sweep-lineSOCOP&LAC: 48× faster (SOCOPparallel Numba kernels + zero-matrixlabel_scores)LocalizedConformalRegressor: 8.4× faster RLCP / 6.0× faster LCP via fused parallel Numba kernelestimate_label_shift_weights: 3.2× faster via zero-allocation BLASdgemvEM
- Documentation: 11 new runnable method pages, updated
docs/index.md,whats-inside.md(73 estimator classes, 5 scores, 101 public exports),api.md,llms.txt, andmkdocs.yml(53 nav pages).
Install: pip install "pyconformal[fast]" (or pip install pyconformal for NumPy-only).
Docs: https://valeman.github.io/pyconformal/