-
Notifications
You must be signed in to change notification settings - Fork 89
/
cartpole_ppo.yaml
52 lines (47 loc) · 1009 Bytes
/
cartpole_ppo.yaml
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
alg_para:
alg_name: PPO
alg_config:
process_num: 1
save_model: True # default False
save_interval: 100
env_para:
env_name: GymEnv
env_info:
name: CartPole-v0
vision: False
agent_para:
agent_name: PPO
agent_num : 1
agent_config:
max_steps: 200
complete_step: 2000000
complete_episode: 9000
model_para:
actor:
model_name: PpoMlp
state_dim: [4]
action_dim: 2
input_dtype: float32
model_config:
BATCH_SIZE: 200
CRITIC_LOSS_COEF: 1.0
ENTROPY_LOSS: 0.01
LR: 0.0003
LOSS_CLIPPING: 0.2
MAX_GRAD_NORM: 5.0
NUM_SGD_ITER: 8
SUMMARY: False
VF_SHARE_LAYERS: False
activation: tanh
hidden_sizes: [64, 64]
env_num: 10
speedup: False
benchmark:
log_interval_to_train: 20
eval:
# model_path: /YOUR/PATH/TO/EVAL/models
gap: 100
model_divided_freq: 1 # how many times to divided of each model
episodes_per_eval: 1
evaluator_num: 1
max_step_per_episode: 4000