Can I train multiple agents at the same time?

I have 2 agents playing hide and seek and currently only one agent can be trained. Is there a way to have them both train against each other

Yes, with self-play.

Hey!
I’m currently trying the same thing (trying multiple agents at a time). As far as I understood, you need to take two steps for this:

  1. Assign the Agent Behaviour to the agents you need. Make sure it points to the same behavior name, but has different team-ids (so each agent need to be in a separate team)
  2. Adjust your training config.yaml, (e.g. like in this documentation ml-agents/docs/Training-ML-Agents.md at main · Unity-Technologies/ml-agents · GitHub )

Your agents will then be trained one after another, always playing again a worse/old version of itself. Once one agent was trained for a bit, it will switch to another team (agent) and train this one.
I hope this helps to get you started!

Hello, I am writing a master’s thesis recently. I want to know whether agents with different behaviors can be trained at the same time. For example, Agent1 observes the road congestion information and gives the vehicle driving path plan. Agent2 controls the vehicle driving