Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.

    Read our full announcement for more information and let us know if you have any questions.

Question Initializing MA-POCA such that different team members have different policies

Discussion in 'ML-Agents' started by soulreaper19994, Apr 18, 2023.

  1. soulreaper19994


    Jan 27, 2022

    I have created a game with 2 teams and 3 members in each team. Each team tries to eliminate the other by shooting balls at them (similar to the DodgeBall environment in Unity). I have found MA-POCA to work well for this scenario. However, I want to train my agents with different capabilities, and hence perform differently. How do I set up my .yaml file such that i can train agents using MA-POCA such that each agent in a team can have a different policy.
  2. MidnightGameDeveloper


    Apr 26, 2014
    You can configure different Behaviours in your yaml file, but I think one of the limitations of POCA is that you can have only one behavior per team.

    Code (CSharp):
    1. behaviors:
    2.   Agent1:
    3.     trainer_type: poca
    4.     hyperparameters
    5.     ...
    6.   Agent2:
    7.     trainer_type: poca
    8.     ...