Repository navigation
v0.1.11
Highlights
- Conformal Risk Control & Learn Then Test (
pyconformal.risk): Pure-NumPyConformalRiskControl(Angelopoulos et al., ICLR 2024) for exact finite-sample expected-risk control of bounded monotone losses in[0, B], andLearnThenTest(Angelopoulos et al., JACM 2025) for high-probability1 - deltasimultaneous control of arbitrary (including non-monotone) losses with exact log-space Binomial, Hoeffding, Bentkus, and Hoeffding–Bentkus p-values and Bonferroni, Holm, and Fixed-Sequence FWER control. - Conformal Object Detection (
pyconformal.detection): Zero-dependencyConformalObjectDetectoron(N, 4)[x1, y1, x2, y2]bounding boxes with exact finite-sample containment guarantees across four modes (additive,multiplicative,additive_coordinate,multiplicative_coordinate), safemin_sizeclamping, Mondriangroups=,clip_bounds=, andcontains/box_area/box_iouhelpers. - Conformal Anomaly Detection & Exchangeability Martingales (
pyconformal.anomaly):ConformalAnomalyDetector(exact & smoothed conformal p-values, Mondriangroups=, Benjamini–Hochberg conformal FDR control viabh_select) andConformalMartingale(Simple Jumper, Power, and Mixture online exchangeability test martingales in log-space with Ville's inequality all-time false-alarm control). - Production hardening & diagnostics: PEP 561
py.typedmarker; two-level_SortedBlocksinSortedWindow(2.3× faster atT=30,000); four pure-NumPy diagnostics inpyconformal.evaluation(size_stratified_coverage,rolling_coverage,reliability_curve,pit_calibration);sklearn.base.clonecompliance fix forDtACI/AgACI; fullpickle/deepcopy/clonetest suite across all public classes; CI fatal-errorrufflint job. - Documentation overhaul: 5-tab navigation, landing Grid Cards & Mermaid flowchart, exact total/per-category method counts (61 estimator classes, 85 public exports), reproducible pure-NumPy SVG comparison charts, KaTeX math rendering, standardised Guarantee callouts,
llms.txt, and two runnable Open-in-Colab quickstart notebooks.
Full changelog: CHANGELOG.md