Skip to main content

Unity Machine Learning Agents

Project description

Unity ML-Agents Trainers

The mlagents Python package is part of the ML-Agents Toolkit. mlagents provides a set of reinforcement and imitation learning algorithms designed to be used with Unity environments. The algorithms interface with the Python API provided by the mlagents_envs package. See here for more information on mlagents_envs.

The algorithms can be accessed using the: mlagents-learn access point. See here for more information on using this package.


Install the mlagents package with:

python -m pip install mlagents==0.27.0

Usage & More Information

For more information on the ML-Agents Toolkit and how to instrument a Unity scene with the ML-Agents SDK, check out the main ML-Agents Toolkit documentation.


  • mlagents does not yet explicitly support multi-agent scenarios so training cooperative behavior among different agents is not stable.
  • Resuming self-play from a checkpoint resets the reported ELO to the default value.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mlagents, version 0.27.0
Filename, size File type Python version Upload date Hashes
Filename, size mlagents-0.27.0-py3-none-any.whl (160.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size mlagents-0.27.0.tar.gz (124.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page