4

Is there any tutorial that walks through a multi-agent reinforcement learning implementation (in Python) using libraries such as OpenAI's Gym (for the environment), TF-agents, and stable-baselines-3?

I searched a lot, but I was not able to find any tutorial, mostly because Gym environments and most RL libraries are not for multi-agent RL.

nbro
  • 39,006
  • 12
  • 98
  • 176
Rnj
  • 221
  • 2
  • 6
  • That question was focusing more on specific setting of multi agent learning explained in three bullet points. This question focuses more on the specific libraries, namely three: OpenAI gym, tf-agents and stable-baseline-3. The two are definitely not the same. Unfortunately, there is no answer on both questions. – Rnj Mar 14 '21 at 20:21
  • 1
    Cross-posted: https://ai.stackexchange.com/q/26806/1794, https://datascience.stackexchange.com/q/90626/8560. Please [do not post the same question on multiple sites](https://meta.stackexchange.com/q/64068). – D.W. Mar 15 '21 at 23:23

2 Answers2

2

After checking the Internet, you will probably find several resources such as

Try to understand the principles first (see above). After some reasonable amount of coding you can adapt OpenAI gym. Good luck!

Update 17 March 2022:

You may want to check this popular repository as well https://github.com/Farama-Foundation/PettingZoo

Update 06 August 2023:

The best multi-agent tutorial I have seen so far comes from RLlib documentation. See RLlib for muti-agent RL.

penkovsky
  • 264
  • 1
  • 10
0

Multi-Agent Deep Reinforcement Learning in 13 Lines of Code Using PettingZoo

A tutorial on multi-agent deep reinforcement learning for beginners.

This tutorial provides a simple introduction to using multi-agent reinforcement learning, assuming a little experience in machine learning and knowledge of Python.

https://towardsdatascience.com/multi-agent-deep-reinforcement-learning-in-15-lines-of-code-using-pettingzoo-e0b963c0820b