-
Notifications
You must be signed in to change notification settings - Fork 30
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
10bba9f
commit b283400
Showing
11 changed files
with
680 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
defaults: | ||
- logger: ff_reinforce | ||
- arch: anakin | ||
- system: ff_reinforce | ||
- network: mlp | ||
- env: gymnax/cartpole | ||
- _self_ |
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,9 @@ | ||
# ---Environment Configs--- | ||
env_name: debug | ||
|
||
scenario: | ||
name: debug | ||
task_name: debug | ||
|
||
kwargs: | ||
num_actions: 4 |
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,8 @@ | ||
# ---Environment Configs--- | ||
env_name: gymnax | ||
|
||
scenario: | ||
name: Acrobot-v1 | ||
task_name: acrobot | ||
|
||
kwargs: {} |
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,8 @@ | ||
# ---Environment Configs--- | ||
env_name: gymnax | ||
|
||
scenario: | ||
name: Pendulum-v1 | ||
task_name: pendulum | ||
|
||
kwargs: {} |
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,4 @@ | ||
defaults: | ||
- base_logger | ||
|
||
system_name: ff_reinforce |
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,17 @@ | ||
# --- Defaults FF-REINFORCE --- | ||
|
||
total_timesteps: 1e8 # Set the total environment steps. | ||
# If unspecified, it's derived from num_updates; otherwise, num_updates adjusts based on this value. | ||
num_updates: ~ # Number of updates | ||
seed: 42 | ||
|
||
# --- RL hyperparameters --- | ||
actor_lr: 3e-4 # Learning rate for actor network | ||
critic_lr: 3e-4 # Learning rate for critic network | ||
update_batch_size: 1 # Number of vectorised gradient updates per device. | ||
rollout_length: 16 # Number of environment steps per vectorised environment. | ||
gamma: 0.99 # Discounting factor. | ||
ent_coef: 0.001 # Entropy regularisation term for loss function. | ||
vf_coef: 1.0 # Critic weight in | ||
max_grad_norm: 0.5 # Maximum norm of the gradients for a weight update. | ||
decay_learning_rates: False # Whether learning rates should be linearly decayed during training. |
Oops, something went wrong.