浏览代码

Update Unity-Agents---Python-API.md

/develop-generalizationTraining-TrainerController
GitHub 7 年前
当前提交
4d984ec2
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 6
      docs/Unity-Agents---Python-API.md

6
docs/Unity-Agents---Python-API.md


# Python API
# Loading a Unity Environment
## Loading a Unity Environment
Python-side communication happens through `UnityEnvironment` which is located in `python/unityagents`. To load a Unity environment from a built binary file, put the file in the same directory as `unityagents`. In python, run:

* `file_name` is the name of the environment binary (located in the root directory of the python project).
* `worker_num` indicates which port to use for communication with the environment. For use in parallel training regimes such as A3C.
# Interacting with a Unity Environment
## Interacting with a Unity Environment
A BrainInfo object contains the following fields:

正在加载...
取消
保存