-
Notifications
You must be signed in to change notification settings - Fork 8
/
experiments.py
45 lines (42 loc) · 1.17 KB
/
experiments.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
"""
Details of all the experiments we run.
We do not seek to tune these parameters too much.
The parameters here work for baselines.
"""
def get_experiment(params):
if params['env_name'] in ['HalfCheetah-v2','HalfCheetah-v1']:
params['h_dim'] = 32
params['layers'] = 2
params['sensings'] = 100
params['learning_rate'] = 0.05
params['sigma'] = 0.1
params['steps'] = 1000
elif params['env_name'] in ['Walker2d-v2']:
params['h_dim'] = 32
params['layers'] = 2
params['sensings'] = 100
params['learning_rate'] = 0.05
params['sigma'] = 0.1
params['steps'] = 1000
elif params['env_name'] == 'Swimmer-v2':
params['h_dim'] = 16
params['layers'] = 2
params['sensings'] = 100
params['learning_rate'] = 0.05
params['sigma'] = 0.1
params['steps'] = 1000
elif params['env_name'] == 'BipedalWalker-v2':
params['h_dim'] = 32
params['layers'] = 2
params['sensings'] = 100
params['learning_rate'] = 0.05
params['sigma'] = 0.1
params['steps'] = 1600
elif params['env_name'] == 'point-v0':
params['h_dim'] = 16
params['layers'] = 2
params['sensings'] = 100
params['learning_rate'] = 0.05
params['sigma'] = 0.1
params['steps'] = 50
return(params)