PacktPublishing / Deep-Reinforcement-Learning-Hands-On

Hands-on Deep Reinforcement Learning, published by Packt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multi-agent D4PG

canteli opened this issue · comments

Thank you for these useful examples. I am trying to implement D4PG in multiple agents that interact with each other, share the same reward, but each agent takes its own actions. I wonder if you had any tips on how I could modify the code to achieve this. Thank you in advance.

Hi!

Sorry, don't have much experience with multi-agent RL, just have heard that this is a cool and promising direction :).

In terms of sharing parts of the network among the agents this is doable in pytorch even in separate subprocesses. For example, you can check my article about pong speed up here: https://medium.com/mlreview/speeding-up-dqn-on-pytorch-solving-pong-in-30-minutes-81a1bd2dff55

In case of several agents living in the same processes, this is even simpler -- just pass output from common net to specific nets.