-
Notifications
You must be signed in to change notification settings - Fork 1
/
launch_exp_gym_diffmetric.py
53 lines (43 loc) · 1.63 KB
/
launch_exp_gym_diffmetric.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
51
52
53
from experiment_launcher import Launcher
if __name__ == '__main__':
local = False
test = False
exp = 'big'
# exp = 'small'
launcher = Launcher(exp_name='metricrl_diff',
python_file='exp_gym_diffmetric',
n_exps=25,
memory=2000,
hours=24,
minutes=0,
seconds=0,
joblib_n_jobs=5,
partition='test24',
use_timestamp=True)
algs = ['PPO', 'TRPO']
# algs = ['PPO']
# nb_centers_list = [10, 20, 40]
nb_centers_list = [10]
init_cluster_noises = [0.1, 1.]
if exp == 'big':
envs = ['HopperBulletEnv-v0', 'Walker2DBulletEnv-v0', 'HalfCheetahBulletEnv-v0', 'AntBulletEnv-v0']
n_epochs = 1000
elif exp == 'small':
envs = ['MountainCarContinuous-v0', 'BipedalWalker-v3', 'Pendulum-v0', 'InvertedPendulumBulletEnv-v0',
'InvertedPendulumSwingupBulletEnv-v0', 'InvertedDoublePendulumBulletEnv-v0']
n_epochs = 500
else:
raise RuntimeError
launcher.add_default_params(
n_epochs=n_epochs,
n_steps=3008,
n_steps_per_fit=3008,
n_episodes_test=5,
)
for env in envs:
for alg in algs:
for nb_centers in nb_centers_list:
for init_cluster_noise in init_cluster_noises:
launcher.add_experiment(env_id=env, alg_name=alg, nb_centers=nb_centers,
init_cluster_noise=init_cluster_noise)
launcher.run(local, test)