Skip to content

Learning hyperparameters for unsupervised anomaly detection

License

Notifications You must be signed in to change notification settings

albertcthomas/anomaly_tuning

Repository files navigation

Build Status

Learning hyperparameters for unsupervised anomaly detection

This repository contains the Python code to learn hyperparameters of unsupervised anomaly detection algorithms as described in the paper "Learning hyperparameters for unsupervised anomaly detection", A. Thomas, S. Clémençon, V. Feuillard, A. Gramfort, Anomaly Detection Workshop, ICML 2016.

To install the package, run:

pip install .

A demo is presented in the notebook: demo_anomaly_tuning.ipynb

Description of the files:

  • estimators.py : anomaly detection estimators used in the paper.
  • tuning.py : hyperparameters selection algorithm described in the paper.
  • demo_anomaly_tuning.py : example of the algorithm on a two dimensional Gaussian mixture data set.
  • utils.py : Gaussian mixture object used to sample from a Gaussian mixture model and compute the density of the model.

We are actively trying to reduce the number of dependencies. However, as of now these are the dependencies for the examples to run:

  • numpy (>=1.16)
  • matplotlib (>=3)
  • scipy (>=1.2)
  • scikit-learn (0.20.2)

Code should run on python 3.7 or higher.

About

Learning hyperparameters for unsupervised anomaly detection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published