forked from utiasDSL/safe-control-gym
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
39659bf
commit a9f2084
Showing
54 changed files
with
652 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,41 @@ | ||
algo: ppo | ||
algo_config: | ||
# model args | ||
hidden_dim: 64 | ||
hidden_dim: 32 | ||
activation: 'leaky_relu' | ||
norm_obs: False | ||
norm_reward: False | ||
clip_obs: 10.0 | ||
clip_reward: 10.0 | ||
|
||
# loss args | ||
gamma: 0.99 | ||
use_gae: True | ||
gae_lambda: 0.95 | ||
gamma: 0.98 | ||
use_gae: False | ||
gae_lambda: 0.8 | ||
use_clipped_value: False | ||
clip_param: 0.2 | ||
target_kl: 0.01 | ||
entropy_coef: 0.01 | ||
clip_param: 0.1 | ||
target_kl: 1.587713889686473e-07 | ||
entropy_coef: 0.00010753631441212628 | ||
|
||
# optim args | ||
opt_epochs: 10 | ||
mini_batch_size: 64 | ||
actor_lr: 0.0003 | ||
critic_lr: 0.001 | ||
opt_epochs: 5 | ||
mini_batch_size: 128 | ||
actor_lr: 0.0007948148615930024 | ||
critic_lr: 0.007497368468753617 | ||
max_grad_norm: 0.5 | ||
|
||
# runner args | ||
max_env_steps: 100000 | ||
max_env_steps: 300000 | ||
num_workers: 1 | ||
rollout_batch_size: 4 | ||
rollout_steps: 100 | ||
rollout_steps: 150 | ||
deque_size: 10 | ||
eval_batch_size: 10 | ||
|
||
# misc | ||
log_interval: 1000 | ||
save_interval: 1000 | ||
log_interval: 6000 | ||
save_interval: 0 | ||
num_checkpoints: 0 | ||
eval_interval: 1000 | ||
eval_interval: 6000 | ||
eval_save_best: True | ||
tensorboard: False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,36 @@ | ||
algo: sac | ||
algo_config: | ||
# model args | ||
hidden_dim: 64 | ||
hidden_dim: 256 | ||
activation: 'relu' | ||
|
||
# loss args | ||
gamma: 0.98 | ||
tau: 0.12145208815621376 | ||
init_temperature: 0.2 | ||
use_entropy_tuning: False | ||
target_entropy: null | ||
|
||
# optim args | ||
train_interval: 100 | ||
train_batch_size: 64 | ||
actor_lr: 0.001 | ||
critic_lr: 0.001 | ||
train_batch_size: 512 | ||
actor_lr: 0.00045196308120485273 | ||
critic_lr: 0.022547326782152065 | ||
entropy_lr: 0.001 | ||
|
||
# runner args | ||
max_env_steps: 100000 | ||
warm_up_steps: 1000 | ||
max_env_steps: 150000 | ||
warm_up_steps: 100 | ||
rollout_batch_size: 4 | ||
num_workers: 1 | ||
max_buffer_size: 1000000 | ||
deque_size: 10 | ||
eval_batch_size: 10 | ||
|
||
# misc | ||
log_interval: 1000 | ||
save_interval: 1000 | ||
num_checkpoints: 100 | ||
eval_interval: 1000 | ||
log_interval: 3000 | ||
save_interval: 0 | ||
num_checkpoints: 0 | ||
eval_interval: 3000 | ||
eval_save_best: True | ||
tensorboard: True | ||
tensorboard: False |
47 changes: 47 additions & 0 deletions
47
examples/rl/config_overrides/cartpole/safe_explorer_ppo_cartpole.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
algo: safe_explorer_ppo | ||
algo_config: | ||
# model args | ||
hidden_dim: 32 | ||
activation: 'leaky_relu' | ||
norm_obs: False | ||
norm_reward: False | ||
clip_obs: 10.0 | ||
clip_reward: 10.0 | ||
|
||
# Safety layer args | ||
pretraining: False | ||
pretrained: null | ||
constraint_slack: [0.01, 0.01, 0.01, 0.05, 0.01, 0.01, 0.01, 0.05] | ||
constraint_hidden_dim: 100 | ||
|
||
# loss args | ||
gamma: 0.98 | ||
use_gae: False | ||
gae_lambda: 0.8 | ||
use_clipped_value: False | ||
clip_param: 0.1 | ||
target_kl: 1.587713889686473e-07 | ||
entropy_coef: 0.00010753631441212628 | ||
|
||
# optim args | ||
opt_epochs: 5 | ||
mini_batch_size: 128 | ||
actor_lr: 0.0007948148615930024 | ||
critic_lr: 0.007497368468753617 | ||
max_grad_norm: 0.5 | ||
|
||
# runner args | ||
max_env_steps: 300000 | ||
num_workers: 1 | ||
rollout_batch_size: 4 | ||
rollout_steps: 150 | ||
deque_size: 10 | ||
eval_batch_size: 10 | ||
|
||
# misc | ||
log_interval: 6000 | ||
save_interval: 0 | ||
num_checkpoints: 0 | ||
eval_interval: 6000 | ||
eval_save_best: True | ||
tensorboard: False |
54 changes: 54 additions & 0 deletions
54
examples/rl/config_overrides/cartpole/safe_explorer_ppo_cartpole_pretrain.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
algo: safe_explorer_ppo | ||
algo_config: | ||
# model args | ||
hidden_dim: 32 | ||
activation: 'leaky_relu' | ||
norm_obs: False | ||
norm_reward: False | ||
clip_obs: 10.0 | ||
clip_reward: 10.0 | ||
|
||
# Safety layer args | ||
pretraining: True | ||
pretrained: null | ||
constraint_hidden_dim: 100 | ||
constraint_lr: 0.0001 | ||
constraint_batch_size: 256 | ||
constraint_steps_per_epoch: 3000 | ||
constraint_epochs: 200 | ||
constraint_eval_steps: 1500 | ||
constraint_eval_interval: 5 | ||
constraint_buffer_size: 1000000 | ||
constraint_slack: [0.01, 0.01, 0.01, 0.05, 0.01, 0.01, 0.01, 0.05] | ||
|
||
# loss args | ||
gamma: 0.98 | ||
use_gae: False | ||
gae_lambda: 0.8 | ||
use_clipped_value: False | ||
clip_param: 0.1 | ||
target_kl: 1.587713889686473e-07 | ||
entropy_coef: 0.00010753631441212628 | ||
|
||
# optim args | ||
opt_epochs: 5 | ||
mini_batch_size: 128 | ||
actor_lr: 0.0007948148615930024 | ||
critic_lr: 0.007497368468753617 | ||
max_grad_norm: 0.5 | ||
|
||
# runner args | ||
max_env_steps: 100000 | ||
num_workers: 1 | ||
rollout_batch_size: 4 | ||
rollout_steps: 150 | ||
deque_size: 10 | ||
eval_batch_size: 10 | ||
|
||
# misc | ||
log_interval: 100 | ||
save_interval: 0 | ||
num_checkpoints: 0 | ||
eval_interval: 100 | ||
eval_save_best: True | ||
tensorboard: False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.