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

Configuring the Agent

Return to the Unity editor and follow these steps to configure the agent:

  1. Select the Brain object in the Hierarchy window.
  2. Set the Simple Decision component parameters, as shown in the following screenshot:
Agent configuration beside the agent running
  1. After you enter the parameters, save the project and scene.
  2. Press Play to run the scene, and with the Brain object selected, observe how the values for each action (0 for action 1) quickly converge to the reward values for each arm pull. The preceding screenshot also shows this. Remember that in the last chapter, we set these to the following:
    • Arm 1 = Gold = 3 reward ...

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