Giter VIP home page Giter VIP logo

proactive-anomaly-detection's Introduction

Requirements

​ First, install PyTorch meeting your environment (recommmended 2.00):

pip3 install torch==2.0.0+cu111 torchvision==0.15.0+cu111 torchaudio==2.0.0+cu111 -f https://download.pytorch.org/whl/cu111/torch_stable.html

​ Then, use the following command to install the rest of the libraries:

pip3 install numpy pandas sklearn matplotlib scipy copy pathlib pyod

Please refer to the attached environment.yaml for our detailed experimental settings.

conda env create -f environment.yaml

Dataset

  • The MSL dataset is available in the data folder in the form of CSV files, and they are divided into a training dataset and a test dataset. ​
  • main.py will automatically load dataset for training and testing ​

Train and test without pretrained model

  • The model evaluation metrics will be printed and logged in the form of a log. In the case of training, the training logs will also be recorded alongside. ​

  • If you provide False to the last parameter of the parser of run.sh as -use_pretrained, the training and test will start without loading the pretrained model.

  • Train and test the model(proactive_anomaly_detection) for the dataset MSL using GPU 0 (cpu for cpu) without pretrained model(False)

run.sh 0 MSL proactive_anomaly_detection False

Test with pretrained model

  • Pretrained model is in the pretrained folder

  • If you provide True to the last parameter of the parser, main.py will load pretrained model and skip training ​

  • test the model(proactive_anomaly_detection) for the dataset MSL using GPU 0 (cpu for cpu) with pretrained model(True)

run.sh 0 MSL proactive_anomaly_detection True

proactive-anomaly-detection's People

Contributors

pkjaehyun avatar

Watchers

 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.