O'Reilly logo

Learn Unity ML-Agents - Fundamentals of Unity Machine Learning by Micheal Lanham

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Training the herbivore

Training at this stage of the book should be second nature to you and we will go over it quickly. Open up Unity to where we last left it and let's get to training:

  1. Make sure your Terrarium scene and the project is saved.
  2. From the menu, select FileBuild Settings.... Make sure that the Terrarium scene is the only scene in the build environment for external training. As long as you are using the same Unity ML-Agents project, you should be good to go.
  3. Build the game for external training to the 'python' folder, as always.
  4. Open Visual Studio Code or your other favorite text editor to the trainer_config.yaml file found in the ml-agents/python folder.
  5. Add a new brain configuration, HerbivoreBrain, and add the text shown ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required