Glossary term

ML-Agents

What are ML-Agents?

Unity Machine Learning Agents

Unity Machine Learning Agents (ML-Agents) is an open-source toolkit that enables developers to create environments where AI agents can learn complex behaviors through reinforcement learning techniques, ideal for creating realistic NPC behaviors and simulations.

How do ML-Agents work?

This framework bridges the gap between machine learning and game development by providing a Python API that communicates with the Unity engine, allowing developers to train intelligent agents using modern reinforcement learning algorithms without extensive AI expertise.

ML-Agents supports various learning approaches including imitation learning (learning from demonstrations), curriculum learning (progressively increasing task difficulty), and multi-agent training (competitive or cooperative behaviors between multiple entities). Typical applications include training NPCs with realistic behaviors, optimizing character controllers, developing autonomous vehicles, creating adaptive game difficulty systems, and building intelligent agents for industrial simulations.

How can you use ML-Agents?

The toolkit's flexibility enables developers to either train agents from scratch using custom reward systems or implement pre-trained neural networks directly into their applications. As an open-source project, ML-Agents benefits from continuous community contributions that expand its capabilities while maintaining accessibility for developers across experience levels.

Back to Glossary