Skip to content

Commit c89df6e

Browse files
author
Moeed
committedSep 25, 2019
Re-organize fgsa.py, naive_bayes.py
Add torch to requirements.txt
1 parent c865674 commit c89df6e

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed
 

‎adversarial/fgsa.py ‎fgsa.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
epsilons = [0, .05, .1, .15, .2, .25, .3]
1212
use_cuda = True
13-
pretrained_model = "../data/lenet_mnist_model.pth"
13+
pretrained_model = "data/lenet_mnist_model.pth"
1414

1515

1616
# model under attack

‎naive_bayes/naive_bayes.py ‎naive_bayes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_model(model, priors, test):
8383

8484

8585
def main(train_size=.7):
86-
train, test = preprocess_data(train_size, '../data/spambase.data')
86+
train, test = preprocess_data(train_size, 'data/spambase.data')
8787
model = train_model(train)
8888
priors = get_priors(train)
8989
accuracy = test_model(model, priors, test)

‎requirements.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ fire
33
opencv-python
44
matplotlib
55
keras
6-
tensorflow-gpu
6+
tensorflow-gpu
7+
torch
8+
torchvision

0 commit comments

Comments
 (0)
Please sign in to comment.