Skip to content

v0.1.12

Latest

Choose a tag to compare

@valeman valeman released this 05 Dec 13:33
84038fd

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) in pyconformal.evaluation
  • Hot-path performance optimisations (PR #14):
    • ConformalLanguageFilter(guarantee="fdr"): 355× faster with Numba (97× pure NumPy) via exact O(N K log(N K)) event-diff sweep-line
    • SOCOP & LAC: 48× faster (SOCOP parallel Numba kernels + zero-matrix label_scores)
    • LocalizedConformalRegressor: 8.4× faster RLCP / 6.0× faster LCP via fused parallel Numba kernel
    • estimate_label_shift_weights: 3.2× faster via zero-allocation BLAS dgemv EM
  • 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, and mkdocs.yml (53 nav pages).

Install: pip install "pyconformal[fast]" (or pip install pyconformal for NumPy-only).
Docs: https://valeman.github.io/pyconformal/