Unity Machine Learning Agents Interface
Project description
Unity ML-Agents Python Interface
The mlagents_envs Python package is part of the
ML-Agents Toolkit.
mlagents_envs provides three Python APIs that allows direct interaction with the
Unity game engine:
- A single agent API (Gym API)
- A gym-like multi-agent API (PettingZoo API)
- A low-level API (LLAPI)
The LLAPI is used by the trainer implementation in mlagents.
mlagents_envs can be used independently of mlagents for Python
communication.
Installation
Install the mlagents_envs package with:
python -m pip install mlagents_envs==1.1.0
Usage & More Information
See
for more information on how to use the API to interact with a Unity environment.
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.
Limitations
mlagents_envsuses localhost ports to exchange data between Unity and Python. As such, multiple instances can have their ports collide, leading to errors. Make sure to use a different port if you are using multiple instances ofUnityEnvironment.- Communication between Unity and the Python
UnityEnvironmentis not secure. - On Linux, ports are not released immediately after the communication closes.
As such, you cannot reuse ports right after closing a
UnityEnvironment.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mlagents_envs-1.1.0.tar.gz.
File metadata
- Download URL: mlagents_envs-1.1.0.tar.gz
- Upload date:
- Size: 57.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fb50795ce16b71b5ae7c168dad0341a4cbca3676b62e7c5c53a1caa4038e069
|
|
| MD5 |
e4fe0d85ee0e773b99da6221c7588753
|
|
| BLAKE2b-256 |
d5d7a5ed11ea04671e47bcc6fdeff227941e8390b26ce5f1be1c2f1456afc122
|
File details
Details for the file mlagents_envs-1.1.0-py3-none-any.whl.
File metadata
- Download URL: mlagents_envs-1.1.0-py3-none-any.whl
- Upload date:
- Size: 89.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbb7e54c6327a53f0b7dd615de49414af496e5f766ccc10f175d3731b32bb985
|
|
| MD5 |
95e7d616dc168895733b06bf4af5c147
|
|
| BLAKE2b-256 |
1cd665e4dec29de915c3cd1966d7c02fa2b09a24f762287db5231151f72671de
|