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

Implementing PPO

The implementation of PPO provided by Unity for training has been set up in a single script that we can put together quite quickly. Open up Unity to the unityenvironment sample projects and go through the following steps:

  1. Locate the GridWorld scene in the Assets/ML-Agents/Examples/GridWorld folder. Double-click it to open it.
  1. Locate the GridWorldBrain and set it to External.
  2. If you have already set the project up to run minimized, then proceed to the next step. If not, you will need to go back to the ML-Agents external brains section to learn the required setup.
  3. From the menu, select File | Build Settings....
  4. Uncheck any earlier scenes and be sure to click Add Open Scenes to add the GridWorld scene to the build.
  5. Click ...

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