Install & Compatibility
Where this runs
tested against v0.13.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
py 3.10
✕ build_error
✓ 39.9s
py 3.11
✕ build_error
✓ 36.7s
py 3.12
✕ build_error
✓ 35.7s
py 3.13
✕ build_error
✕ build_error
py 3.9
✕ build_error
✓ 45.6s
1013MB installed
● package 1013MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
outlier_detector
✓ from alibi_detect.od import OutlierAENN
✗ from alibi_detect import OutlierAENN
Detectors are in submodules like alibi_detect.od, alibi_detect.cd, alibi_detect.ad.
drift_detector
✓ from alibi_detect.cd import MMDDrift
✗ from alibi_detect.drift import MMDDrift
Drift detectors are in alibi_detect.cd (concept drift) not a separate drift module.
Basic drift detection with MMDDrift.
from alibi_detect.cd import MMDDrift
from alibi_detect.utils.data import create_outlier_batch
import numpy as np
# create some reference data
np.random.seed(0)
ref_data = np.random.randn(100, 10)
# initialize detector
cd = MMDDrift(ref_data, p_val=0.05)
# detect drift on new data
x_new = np.random.randn(100, 10)
preds = cd.predict(x_new)
print(preds)
Upgrade
Version history
0.13.0latest on PyPI · released Dec 11, 2025
Audit
Dependencies
tensorflowoptionalRequired for TensorFlow-based detectors and legacy saving/loading (environment variable TF_USE_LEGACY_KERAS=1 needed for v0.13.0).
torchoptionalOptional for PyTorch-based detectors.
scikit-learnrequiredRequired for certain detectors and metrics.