Unity ML-Agents 2022: Installation

Get up and running with ML Agents latest branch 19 release

Viraj Vaitha
7 min readFeb 5, 2022

Objectives

  • Provide a complete illustrative guide to installing ML-Agents.
  • Open an example environment and retrain to test things are working correctly.

Introduction

Unity released an open source library named ML-Agents, an open source library to help train “agents” with intelligent behavior by leveraging state-of-the-art deep learning technology.

First you frame your game with observations, actions and rewards preparing the agent for training. Once the game has been framed correctly the agent can interact with the game, and learn overtime. The agent uses a deep reinforcement learning algorithm such as PPO to update the agent policy to make better decisions.

Here are some advantages of using ML-Agents:

  • Speed up game development instead of writing complex hard coded logic
  • Create challenging opponents to make your game more enjoyable
  • AI /ML scientists could learn from how AI Agents solve problems by modelling a game that closely simulates real life situations.

--

--

Viraj Vaitha
Viraj Vaitha

Written by Viraj Vaitha

Advanced Analytics developer 👨‍💻 | Exploring our worlds state-of-the-art technologies🤖

No responses yet