How to install the ML-Agents Toolkit

As a first step, we need to download the toolkit. We can do this by cloning the repository with the following command:

git clone https://github.com/Unity-Technologies/ml-agents.git

This creates an ml-agents folder in your current position. The ML-Agents Toolkit is composed of three main components:

  • A Unity plugin (stored in the UnitySDK subfolder).
  • A Python package containing the Python interface for Unity and for TensorFlow's trainers (stored in the ml-agents folder)
  • A Python package containing the interface with OpenAI Gym (https://gym.openai.com/), a toolkit for training reinforcement learning agents (stored in the gym-unity folder).
Git is the most famous version-control application in the world. ...

Get Unity Artificial Intelligence Programming - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.