Skip to content

Commit

Permalink
init project
Browse files Browse the repository at this point in the history
  • Loading branch information
nailo2c committed Mar 10, 2020
1 parent 220eb55 commit 49ea979
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"python.linting.banditEnabled": true,
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# deeplog

PyTorch implements "DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning"
Empty file added preprocess.py
Empty file.
10 changes: 2 additions & 8 deletions train.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
import argparse
import re
import os
import sys
import boto3
import json
import logging
import datetime
from glob import glob
import torch
import torch.distributed as dist
import torch.nn as nn
import torch.optim as optim
from torch.utils.data import TensorDataset, DataLoader
Expand Down Expand Up @@ -144,9 +138,9 @@ def save_model(model, model_dir, args):
parser.add_argument('--num-gpus', type=int, default=0,
helper='number of gpu to train')
parser.add_argument('--data-dir', type=str, default='./data/',
helper='the place where store the training data')
helper='the place where to store the training data.')
parser.add_argument('--model-dir', type=str, default="./model/",
help='the place where store model parameter.')
help='the place where to store the model parameter.')

parser.add_argument('--num-classes', type=int, metavar='N',
help='the number of model\'s output, must same as pattern size!')
Expand Down

0 comments on commit 49ea979

Please sign in to comment.