-
Notifications
You must be signed in to change notification settings - Fork 3
/
net_config.py
50 lines (49 loc) · 1.27 KB
/
net_config.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
'''
file with various network architectures.
'''
NET_CONFIGS = {
'openai': {
'conv_filters': (32, 32, 32, 32),
'conv_sizes': (3, 3, 3, 3),
'conv_strides': (2, 2, 2, 2),
'pads': ['same']*4,
'conv_droputs': [0.0]*4,
'fc_sizes': (256,),
'fc_dropouts': [0.],
'batch_norm': True,
'activation': 'elu'
},
'openai2': {
'conv_filters': (32, 32, 32, 32),
'conv_sizes': (6, 6, 6, 6),
'conv_strides': (2, 2, 2, 2),
'pads': ['same'] * 4,
'conv_droputs': [0.0] * 4,
'fc_sizes': (256,),
'fc_dropouts': [0.],
'batch_norm': True,
'activation': 'elu'
},
'dqn': {
'conv_filters': (32, 64, 64),
'conv_sizes': (8, 4, 3),
'conv_strides': (4, 2, 1),
'pads': ['valid']*3,
'conv_droputs': [0.]*3,
'fc_sizes': (512, 256),
'fc_dropouts': [0.]*2,
'batch_norm': True,
'activation': 'relu'
},
'dqn2': {
'conv_filters': (16, 32),
'conv_sizes': (8, 4),
'conv_strides': (4, 2),
'pads': ['valid'] * 2,
'conv_droputs': [0.0] * 2,
'fc_sizes': (256, ),
'fc_dropouts': [0.,],
'batch_norm': True,
'activation': 'relu'
}
}