-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
48 lines (41 loc) · 910 Bytes
/
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
#General
N_GAMES = 6001
FIGURE_FILE = 'plots/score.png'
FIGURE_FILE2 = 'plots/critic_actor_loss.png'
CHECKPOINT_DIR = 'checkpoint/'
LOAD_CHECKPOINT = False
#Memory
MEMORY_SIZE = 10**6
BATCH_SIZE = 1024
#Network hyper pars
ALPHA = 0.01
BETA = 0.02
TAU = 0.01
GAMMA = 0.95
UPDATE_EVERY = 100
#Network architecture
WEIGHT_INIT = 'he_normal'
BIAS_INIT = 'he_normal'
CRITIC_DENSE1 = 128
CRITIC_DENSE2 = 128
ACTORS_DENSE1 = 128
ACTORS_DENSE2 = 128
CRITIC_ACTIVATION_HIDDEN = 'leaky_relu'
CRITIC_ACTIVATION_OUTPUT = None
ACTORS_ACTIVATION_HIDDEN = 'leaky_relu'
ACTORS_ACTIVATION_OUTPUT = 'softmax'
#Ornstein-Uhlenbeck noise parameters for exploration
THETA = 0.15
SIGMA = 0.3
DT = 1e-2
X0 = None
#for logging purposes
CRITIC_LOSS_GOOD = []
ACTORS_LOSS_GOOD = []
CRITIC_LOSS_ADV = []
ACTORS_LOSS_ADV = []
UPDATE_EPISODES = []
SCORES_HISTORY_GOOD = []
SCORES_HISTORY_ADV = []
AVG_SCORE_GOOD = 0
AVG_SCORE_ADV = 0