Turn anomaly scores into decisions with a stated error rate: FDR-controlled selection, certified false-alarm thresholds and stream monitoring with nonconform.
A detector ranks points by how unusual they look but leaves the cutoff to you.
The usual default, flagging the top 10% of scores, is a guess about how many
anomalies there are. nonconform calibrates the scores of your existing detector
against normal data, so the threshold follows from the error rate you can accept.
Works with
The same Isolation Forest on seven benchmark datasets, with and without nonconform:
Isolation Forest from PyOD; "detector alone" uses its default predict() threshold, "+ nonconform" uses select(alpha=0.1). Mean of 20 random splits per benchmark dataset. The average false share stays under the 10% target on every dataset; where the detector barely separates anomalies (Mammography, Cardio), nonconform flags little rather than guess. The baseline trains on every row, nonconform holds some back for calibration. Reproduce with default_thresholds.py; the benchmark page adds a certified threshold and per-split results.