Coder Social home page Coder Social logo

finloop / usad-torchlightning Goto Github PK

View Code? Open in Web Editor NEW
18.0 1.0 1.0 30 KB

Implementation of USAD (UnSupervised Anomaly Detection on multivariate time series) in PyTorch Lightning

License: MIT License

Python 100.00%
anomaly-detection pytorch pytorch-lightning dvc dvc-pipeline

usad-torchlightning's Introduction

usad-torchlightning

Implementation of USAD (UnSupervised Anomaly Detection on multivariate time series) in PyTorch Lightning.

Original implementation by: Francesco Galati. Original code can be found in: USAD.

Getting started

To start, first download the data.

Data

Data can be found in:

After downloading them put them in data/raw.

Running the model

dvc exp run

Changing the parameters

All the parameters (for example epoch size) can be found in params.yaml.

Requirements

  • pytorch 1.9
  • dvc
  • pytorch-lighting
  • python 3.8

How to cite

If you use this software, please cite the following paper as appropriate:

Audibert, J., Michiardi, P., Guyard, F., Marti, S., Zuluaga, M. A. (2020).
USAD : UnSupervised Anomaly Detection on multivariate time series.
Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, August 23-27, 2020

usad-torchlightning's People

Contributors

finloop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

minajwsy

usad-torchlightning's Issues

Threshold Definition

Hi @finloop I am just wondering how did you define the threshold? I am looking at the paper but they didn't explain how did they set it up? Because you define it as "thresholds = np.arange(0.0, np.max(y_pred), np.max(y_pred)/50)", and in the loop when it searches for the best f1 score index, if it gives 0, then all the test dataset will be labelled as an anomaly.

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.