Search Unity

Self-play and multi-agent reinforcement learning

Discussion in 'ML-Agents' started by unity_2Aiq5hKaS70KCQ, Feb 6, 2020.

  1. unity_2Aiq5hKaS70KCQ

    unity_2Aiq5hKaS70KCQ

    Joined:
    Jul 7, 2018
    Posts:
    1
    Is self-play or multi-agent reinforcement learning possible with the current state of ML Agents? I have't tinker with it much yet but I have a project in mind which would require having multiple agents in one scene interacting with each other and cooperating.
    Does ML Agents allow to set up many controllable brains learning at the same time?
     
  2. celion_unity

    celion_unity

    Joined:
    Jun 12, 2019
    Posts:
    289
    We recently added a self-play option for symmetric, adversarial games. This is on the master branch now and will be in the next release (0.14.0); the documentation is available here https://github.com/Unity-Technologies/ml-agents/blob/0.14.0/docs/Training-Self-Play.md

    However, it sounds like what you described doesn't fit that description (not symmetric or adversarial). I think we're planning out some more features in this area, but don't have the details right now.

    Not specifically for cooperation, but all of the examples have the same brain shared by multiple agents.

    (Edited July 14 2002: updated link to the 0.14.0-specific docs)
     
    Last edited: Jul 15, 2020
  3. mbaske

    mbaske

    Joined:
    Dec 31, 2017
    Posts:
    473
    Nice! Is there an updated example project, leveraging this new option?
     
  4. celion_unity

    celion_unity

    Joined:
    Jun 12, 2019
    Posts:
    289
    @mbaske - the Soccer and Tennis environments now use the self-play option
     
  5. Freundi

    Freundi

    Joined:
    Apr 5, 2020
    Posts:
    1
  6. unity_-DoCqyPS6-iU3A

    unity_-DoCqyPS6-iU3A

    Joined:
    Aug 18, 2018
    Posts:
    26
  7. unity_6gCk04bKBvTBXw

    unity_6gCk04bKBvTBXw

    Joined:
    Aug 21, 2020
    Posts:
    5
    Hi I have done this but it say " WARNING [trainer.py:240] Your environment contains multiple
    teams, but PPOTrainer doesn't support adversarial games. Enable self-play to train adversarial games.
    " how can i solve this , thanks in advance
     
  8. christophergoy

    christophergoy

    Joined:
    Sep 16, 2015
    Posts:
    735