ml-agents icon indicating copy to clipboard operation
ml-agents copied to clipboard

Training mutliple agents against each other

Open StarWardo opened this issue 6 years ago • 4 comments

Ml-agents is awesome, it has become my work and hobby! Thanks for that!

I am creating a "cat and mouse" environment , where one agent has to find treasures and the other has to hunt the agent down before he finds the treasure. I have trained one agents to run around and collect treasure. Now I want to add another agent to the env that chases the first agent. Similar to the Hide and Seek level from OpenAI.

I would like to be able to train two brains in the same env to create a cat.nn model and mouse.nn model.

I checked out self play but in my case the agents have different goals and attributes.

Would self play work in my case?

What would be best approach to this?

I hope I wrote my Issue properly please let me know if anything is missing, thanks.

StarWardo avatar Mar 15 '20 18:03 StarWardo

Hi @StarWardo

The game you describe is an example of an asymmetric game which unfortunately the current implementation of self-play does not support. It is high priority to extend the implementation to support this case. Keep an eye out over the next few weeks!

andrewcoh avatar Mar 16 '20 16:03 andrewcoh

Hello @andrewcoh

Thanks for the comment!

I will stick to traditional navigation agents as hunters for now.

StarWardo avatar Mar 16 '20 17:03 StarWardo

Interestingly, I have the exact same use case! Would love to see this implementation as well. Counting down the days when it is ready.

tqtran7 avatar Mar 24 '20 15:03 tqtran7

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Jan 30 '21 12:01 github-actions[bot]