Algorithms for outlier detection, concept drift and metrics.
Project description
alibi-detect is an open source Python library focused on outlier, adversarial and concept drift detection. The package aims to cover both online and offline detectors for tabular data, images and time series. The outlier detection methods should allow the user to identify global, contextual and collective outliers.
Installation
alibi-detect can be installed from PyPI:
pip install alibi-detect
This will install alibi-detect
with all its dependencies:
creme
fbprophet
matplotlib
numpy
pandas
scipy
scikit-learn
tensorflow>=2
tensorflow_probability>=0.8
Supported algorithms
Outlier Detection
-
Isolation Forest (FT Liu et al., 2008)
- Documentation
- Examples: Network Intrusion
-
Mahalanobis Distance (Mahalanobis, 1936)
- Documentation
- Examples: Network Intrusion
-
Variational Auto-Encoder (VAE) (Kingma et al., 2013)
- Documentation
- Examples: Network Intrusion, CIFAR10
-
Auto-Encoding Gaussian Mixture Model (AEGMM) (Zong et al., 2018)
- Documentation
- Examples: Network Intrusion
-
Variational Auto-Encoding Gaussian Mixture Model (VAEGMM)
- Documentation
- Examples: Network Intrusion
The following table shows the advised use cases for each algorithm. The column Feature Level indicates whether the outlier scoring and detection can be done and returned at the feature level, e.g. per pixel for an image:
Detector | Tabular | Image | Time Series | Text | Categorical Features | Online | Feature Level |
---|---|---|---|---|---|---|---|
Isolation Forest | ✔ | ✘ | ✘ | ✘ | ✔ | ✘ | ✘ |
Mahalanobis Distance | ✔ | ✘ | ✘ | ✘ | ✔ | ✔ | ✘ |
VAE | ✔ | ✔ | ✘ | ✘ | ✘ | ✘ | ✔ |
AEGMM | ✔ | ✔ | ✘ | ✘ | ✘ | ✘ | ✘ |
VAEGMM | ✔ | ✔ | ✘ | ✘ | ✘ | ✘ | ✘ |
Adversarial Detection
- Adversarial Variational Auto-Encoder
- Documentation
- Examples: MNIST
Advised use cases:
Detector | Tabular | Image | Time Series | Text | Categorical Features | Online | Feature Level |
---|---|---|---|---|---|---|---|
Adversarial VAE | ✔ | ✔ | ✘ | ✘ | ✘ | ✘ | ✘ |
Integrations
The integrations folder contains various wrapper tools to allow the alibi-detect algorithms to be used in production machine learning systems with examples on how to deploy outlier and adversarial detectors with KFServing.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file alibi-detect-0.1.0.tar.gz
.
File metadata
- Download URL: alibi-detect-0.1.0.tar.gz
- Upload date:
- Size: 986.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5fec082f840505de0a2fd0a36a3b1cd46be72da7b766ce475aa8127e235d420 |
|
MD5 | dc518029a5a0ce2ce4955569e5363d9b |
|
BLAKE2b-256 | 38f1401835b1d58acf51368342c05f8c4f759a2210447688d9e2ba293e6cc51a |
File details
Details for the file alibi_detect-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: alibi_detect-0.1.0-py3-none-any.whl
- Upload date:
- Size: 65.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a90bedc7d5a8bb3e981ad0a3a18073e4bcb712188bc77802af919eebbab0fb5 |
|
MD5 | 51c1f4891efe0e8eb45969dd1a52fac5 |
|
BLAKE2b-256 | 44412ba9da91b7c1871170c8088535a69da985b923d05c453f93189de03ae848 |