zhuyiche / anomaly_tuning

Learning hyperparameters for unsupervised anomaly detection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

python setup.py install --user

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.9)
  • matplotlib (>=1.3)
  • scipy (>=0.16)
  • scikit-learn (0.18)

Code should run on both Python 2.7 and Python 3.4 or higher.

About

Learning hyperparameters for unsupervised anomaly detection

License:Other


Languages

Language:Jupyter Notebook 86.5%Language:Python 13.5%