GithubHelp home page GithubHelp logo

dghl's Introduction

DGHL

This repo provides an implementation of the DGHL model and produces the results for the main table presented in the paper.

Data

The datasets are not included in the repository, but are available in the following links:

NASA

SMAP and MSL datasets are available at https://s3-us-west-2.amazonaws.com/telemanom/data.zip. Labels are available at https://raw.githubusercontent.com/khundman/telemanom/master/labeled_anomalies.csv. Refer to https://github.com/khundman/telemanom for more details of these datasets.

SMD

SMD dataset is available at https://github.com/NetManAIOps/OmniAnomaly.

Environment

Run setup.sh to create a conda environment with the packages needed to run the experiments (this file does not consider different CUDA version to run in GPU. Refer to https://pytorch.org/get-started/locally/ for PyTorch installation).

Run DGHL experiment from console

To replicate the results of the paper, in particular to produce the anomaly scores for DGHL, run the `run_dghl.py' script:

python src/run_dghl.py --random_seed 1 --experiment_name 'DGHL'

The random_seed argument specifies the random seed for the model parameters initialization and Langevin Dynamics initial state. To replicate results of the paper, run with seeds 1-4. Experiment name can be used to identify different runs. This script will produce anomaly scores for the four datasets considered in the paper.

Evaluation

The evaluation functions are included in utils_evaluation.py. Use the notebook analyze_complete_run.ipynb to run the evaluation. You might need to modify the directory of the results. The notebook simple_benchmarks.ipynb runs simple benchmarks, Mean Deviation and Nearest Neighbors, on the four datasets.

dghl's People

Contributors

cchallu avatar

Stargazers

David Hockaday avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.