-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(multi-agents): implemented n-step replay buffer for multi-agents …
…training. (#41,#25,#31) 1. change variable name from "is_lg_batch_size" to "can_sample" 2. optimized unity wrapper 3. optimized multi-agents replay buffers
- Loading branch information
1 parent
e4c5da7
commit dbc6136
Showing
12 changed files
with
191 additions
and
55 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
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,24 +1,42 @@ | ||
ExperienceReplay: {} | ||
ExperienceReplay: &ExperienceReplay {} | ||
|
||
PrioritizedExperienceReplay: | ||
PrioritizedExperienceReplay: &PrioritizedExperienceReplay | ||
alpha: 0.6 # priority | ||
beta: 0.4 # importance sampling ratio | ||
epsilon: 0.01 | ||
global_v: false | ||
|
||
NStepExperienceReplay: | ||
NStepExperienceReplay: &NStepExperienceReplay | ||
n_step: 4 | ||
|
||
NStepPrioritizedExperienceReplay: | ||
NStepPrioritizedExperienceReplay: &NStepPrioritizedExperienceReplay | ||
alpha: 0.6 | ||
beta: 0.4 | ||
epsilon: 0.01 | ||
global_v: false | ||
n_step: 4 | ||
|
||
# off-policy with rnn | ||
EpisodeExperienceReplay: | ||
EpisodeExperienceReplay: &EpisodeExperienceReplay | ||
burn_in_time_step: 20 | ||
train_time_step: 40 # null | ||
|
||
MultiAgentExperienceReplay: {} | ||
# Multi-Agents | ||
|
||
MultiAgentCentralExperienceReplay: {} # TODO | ||
|
||
MultiAgentExperienceReplay: | ||
ExperienceReplay: | ||
<<: *ExperienceReplay | ||
|
||
PrioritizedExperienceReplay: | ||
<<: *PrioritizedExperienceReplay | ||
|
||
NStepExperienceReplay: | ||
<<: *NStepExperienceReplay | ||
|
||
NStepPrioritizedExperienceReplay: | ||
<<: *NStepPrioritizedExperienceReplay | ||
|
||
EpisodeExperienceReplay: | ||
<<: *EpisodeExperienceReplay |
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
Oops, something went wrong.