-
Notifications
You must be signed in to change notification settings - Fork 270
/
test_analyze.py
50 lines (40 loc) · 1.43 KB
/
test_analyze.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
def test_analyze(scan_object):
'''Tests all the attributes available in the Reporting() object'''
print('\n >>> Start Analyze()... \n')
import talos
# for now test with old name
r = talos.Reporting(scan_object)
# read from file
#list_of_files = glob.glob('./test_latest/' + '/*.csv')
#r = talos.Reporting(list_of_files[-1])
# and then from scan object
r = talos.Analyze(scan_object)
# test the object properties
r.best_params('val_loss', ['val_acc'])
r.correlate('val_loss', ['val_acc',
'start',
'end',
'activation',
'optimizer',
'losses',
'shapes'])
r.data
r.high('val_acc')
r.low('val_acc')
# r.plot_bars('first_neuron', 'val_acc', 'dropout', 'hidden_layers')
r.plot_box('first_neuron', 'val_acc')
r.plot_corr('val_loss', ['val_acc',
'start',
'end',
'activation',
'optimizer',
'losses',
'shapes'])
r.plot_hist('val_acc')
r.plot_kde('val_acc')
r.plot_line('val_acc')
r.plot_regs('val_acc', 'val_loss')
r.rounds()
r.rounds2high('val_acc')
r.table('val_loss', ['val_acc'])
print('finish Analyze() \n')