-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Denys Makoviichuk <[email protected]>
- Loading branch information
Showing
9 changed files
with
180 additions
and
14 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
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
params: | ||
algo: | ||
name: a2c_discrete | ||
|
||
model: | ||
name: discrete_a2c | ||
|
||
network: | ||
name: testnet_aux_loss | ||
config: | ||
reward_shaper: | ||
scale_value: 1 | ||
normalize_advantage: True | ||
gamma: 0.99 | ||
tau: 0.9 | ||
learning_rate: 2e-4 | ||
name: test_md_multi_obs | ||
score_to_win: 0.95 | ||
grad_norm: 10.5 | ||
entropy_coef: 0.005 | ||
truncate_grads: True | ||
env_name: test_env | ||
e_clip: 0.2 | ||
clip_value: False | ||
num_actors: 16 | ||
horizon_length: 256 | ||
minibatch_size: 2048 | ||
mini_epochs: 4 | ||
critic_coef: 1 | ||
lr_schedule: None | ||
kl_threshold: 0.008 | ||
normalize_input: False | ||
normalize_value: False | ||
weight_decay: 0.0000 | ||
max_epochs: 10000 | ||
seq_length: 16 | ||
save_best_after: 10 | ||
save_frequency: 20 | ||
|
||
env_config: | ||
name: TestRnnEnv-v0 | ||
hide_object: False | ||
apply_dist_reward: False | ||
min_dist: 2 | ||
max_dist: 8 | ||
use_central_value: True | ||
multi_obs_space: True | ||
multi_head_value: False | ||
aux_loss: True | ||
player: | ||
games_num: 100 | ||
deterministic: True |
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,6 +1,7 @@ | ||
|
||
|
||
from rl_games.envs.test_network import TestNetBuilder | ||
from rl_games.envs.test_network import TestNetBuilder, TestNetAuxLossBuilder | ||
from rl_games.algos_torch import model_builder | ||
|
||
model_builder.register_network('testnet', TestNetBuilder) | ||
model_builder.register_network('testnet', TestNetBuilder) | ||
model_builder.register_network('testnet_aux_loss', TestNetAuxLossBuilder) |
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