Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

PyTorch implements "DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning"

NotificationsYou must be signed in to change notification settings

nailo2c/deeplog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyTorch implements "DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning"

Play on Colab

https://colab.research.google.com/drive/1xWHovxTkysiPei68bTywqB2oCo6JelAU?usp=sharing

Getting Started

  1. Build environment

    git clone https://github.com/nailo2c/deeplog.gitcd deeplogpython3 -m venv venv. venv/bin/activatepip install -r requirements.txt
  2. Run local example

    We use open dataOpenStack from logpai's loghub

    2.1. Preprocess

    cdexample/python3preprocess.py

    2.2. Train

    num-class is count ofevent_id_map, whereevent_id_map is generated bypreprocess.py.num-candidates is self-define, here we definenum-candidates isnum-class*0.1

    python3train.py--num-class1143--num-candidates114--epochs35--window-size3--localTrue

    2.3. Predict

    python3predict.py--threshold25
  3. Result

    Accuracy0.9430014
    Precision0.6497461
    Recall0.9275362
    F10.7641791
  4. Deactivate

    deactivate

Folder Structure

  • This tree structure is generate by mac terminal tooltree & copy paste it toREADME.md.

    tree -I"__pycache__|tmp.*">> tmp.txt
.├── README.md├── deeplog│   ├── __init__.py│   └── deeplog.py├── example│   ├── data│   │   └── OpenStack│   │       ├── anomaly_labels.txt│   │       ├── openstack_abnormal.log│   │       ├── openstack_normal1.log│   │       └── openstack_normal2.log│   ├── predict.py│   ├── preprocess.py│   └── train.py└── requirements.txt

About

PyTorch implements "DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp