-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathparam_test_impala.py
More file actions
44 lines (33 loc) · 1.24 KB
/
param_test_impala.py
File metadata and controls
44 lines (33 loc) · 1.24 KB
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
from param_test_ppo import main
if __name__ == '__main__':
configuration = {
'model': {
'fcnet_hiddens': [512],
'use_lstm': False,
},
'num_workers': 11,
'num_gpus': 1,
'batch_mode': 'truncate_episodes',
'observation_filter': 'NoFilter',
'lr': 0.0001,
'sample_batch_size': 50,
'train_batch_size': 64,
'num_sgd_iter': 32,
"num_data_loader_buffers": 4,
# how many train batches should be retained for minibatching. This conf
# only has an effect if `num_sgd_iter > 1`.
"minibatch_buffer_size": 4,
# set >0 to enable experience replay. Saved samples will be replayed with
# a p:1 proportion to new data samples.
# 'replay_proportion': 10,
# number of sample batches to store for replay. The number of transitions
# saved total will be (replay_buffer_num_slots * sample_batch_size).
# 'replay_buffer_num_slots': 100,
# level of queuing for sampling.
'max_sample_requests_in_flight_per_worker': 1,
'broadcast_interval': 3,
'grad_clip': 40.0,
'vf_loss_coeff': 1.0,
'entropy_coeff': 0.0,
}
main('IMPALA', configuration)