PKU-MARL / Multi-Agent-Transformer

345 stars 71 forks source link

Arbitrary Sequences #1

Closed tsung-jui-wu closed 2 years ago

tsung-jui-wu commented 2 years ago

Hi, First of all, thanks for this amazing job on MARL. According to the paper, the sequence of agents could be in any order but I cannot find the part that sequence is shuffled or randomized in the evaluation states, is the ordering of the agents' decision fixed in this code?

Thanks again

morning9393 commented 2 years ago

Hiya, Thanks so much for your attention! In the early version, we implemented the env with a randomizing process for agents' order before every episode but removed it later and keep the default order (just for keeping this repo simple, since any orders are acceptable, so is the default order). In the newest commit, we added the randomizing process back for SMAC as an example with a switch "random_agent_order", so you can decide whether to use it. Or you can change it to any order you like referring to the "Random_StarCraft2_Env.py" (see the parts commented with "add for randomizing").

Hope this little update may help you!