How to use broadcast for supervised / imitation learning
Hey guys,
The new 0.2 update is awesome and I think the broadcast feature could be very useful, but I am still unsure on how to do imitation learning with this. Is there something of an example or guideline I could use on how to achieve this? Or should I wait for another update where this is fully implemented?
Thanks again, keep up the great work!
Hi @gerardsimons,
We are currently working on a notebook which explains how to use broadcasting for imitation learning. I am planning on having it ready to release in a couple months, but if you are adventurous, and don't mind looking through code, you can see it develop here: https://github.com/Unity-Technologies/ml-agents/blob/dev-imitation/python/Imitation%20Learning.ipynb
In that notebook I use the Wall Area environment to collect experiences from a player, and then train a NN to imitate them.
@awjuliani : Great, I thought so, thanks for that. I will have a look in the meantime at the experimental code
@awjuliani : Its been a while, but I wanted to check this out again, but the notebook is unclear on what environment to use other than that it should be called "race_i" and that it should have two brains called "BrainE" and "BrainP".
I read from your previous comment that you used the Wall Area scene, so I took that one and changed it so it has two brains (BrainE set to External, and BrainP set to Player). This gets me a bit farther, but crashes on the last cell of the data collection part. Any ideas?

There is not documentation on it yet but imitation is supported on development branch. Look at the bananaImitation scene. You need an ExpertBrain and a StudentBrain with specific training parameters.
Hi @gerardsimons , thanks for reaching out to us. Hopefully you were able to resolve your issue. We are closing this due to inactivity, but if you need additional assistance, feel free to reopen the issue.
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.