-
Notifications
You must be signed in to change notification settings - Fork 1
/
acc.py
32 lines (31 loc) · 901 Bytes
/
acc.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import sys
import numpy as np
print 'Usage: python acc.py Filename'
filename = sys.argv[1];
config = ""
best_acc = 100.0
with open(filename) as f:
for line in f:
if "learning_rate " in line:
print(line)
if "label_smoothing" in line:
print(line)
if "weight_decay" in line:
print(line)
if "warmup" in line:
print(line)
if "top_1_accuracy" in line:
print(line)
if "beta1 is" in line:
print(line)
if "beta2 is" in line:
print(line)
if "eps is" in line:
print(line)
#mystr = line.split();
#acclist = mystr[-1].split('%');
#acc = float(acclist[0]);
#if acc < best_acc:
#best_acc = acc
#print(config)
#print("lowest error rate: " + str(best_acc))