GitHub
65dbe0ec
Move processing of steps after reset to advance() (#3271)
In the previous PR, steps were processed when the env manager was reset. This was an issue for the very first reset, where we don't actually know which agent groups (and AgentManagers) we needed to send the steps to. These steps were being thrown away. This PR moves the processing of steps to advance(), so that the initial reset steps are simply processed when the next advance(). This also removes the need for an additional block of code in TrainerController to handle the initial reset. |
5 年前 | |
---|---|---|
.. | ||
mlagents | Move processing of steps after reset to advance() (#3271) | 5 年前 |
tests | Create ML-Agents Package (#3267) | 5 年前 |
README.md | Rename mlagents.envs to mlagents_envs (#3083) | 5 年前 |
setup.py | Add 'run-experiment' script, simpler curriculum config (#3186) | 5 年前 |
README.md
Unity ML-Agents Python Interface and Trainers
The mlagents
Python package is part of the
ML-Agents Toolkit.
mlagents
provides a Python API that allows direct interaction with the Unity
game engine as well as a collection of trainers and algorithms to train agents
in Unity environments.
The mlagents
Python package contains two sub packages:
-
mlagents_envs
: A low level API which allows you to interact directly with a Unity Environment. See here for more information on using this package. -
mlagents.trainers
: A set of Reinforcement Learning algorithms designed to be used with Unity environments. Access them using the:mlagents-learn
access point. See here for more information on using this package.
Installation
Install the mlagents
package with:
pip install mlagents
Usage & More Information
For more detailed documentation, check out the ML-Agents Toolkit documentation.