Conformal Anomaly Detection in Python: Moving Beyond Heuristic Thresholds with 'nonconform'
Oliver Hennh\"ofer, Maximilian Kirsch, Christine Preisach

TL;DR
This paper introduces 'nonconform', a Python package that applies conformal anomaly detection to provide statistically calibrated and interpretable anomaly scores, improving upon heuristic thresholds.
Contribution
It presents a practical implementation of conformal anomaly detection in Python, integrating with popular ML tools and supporting various calibration strategies.
Findings
Empirical results show statistically principled anomaly detection.
The package supports multiple conformalization strategies.
It enhances reproducibility and interpretability in anomaly detection workflows.
Abstract
Most anomaly detection systems output scores rather than calibrated decisions, leaving practitioners to choose thresholds heuristically and without clear statistical interpretation. Conformal anomaly detection addresses this limitation by converting anomaly scores into calibrated p-values that are valid under the statistical assumption of data exchangeability, with a growing literature extending this idea beyond that setting. We present 'nonconform', a Python package for applying conformal anomaly detection within existing machine-learning workflows, and use it as the basis for an implementation-grounded introduction to the field. The package integrates with 'scikit-learn', 'pyod', and custom anomaly detectors, and provides a unified interface for calibration, p-value generation, and false discovery rate control. It supports several conformalization strategies, ranging from simple…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
