浏览代码

resolved comments

/develop-generalizationTraining-TrainerController
Vincent Gao 7 年前
当前提交
6806c801
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 7
      docs/Python-API.md
  2. 3
      python/learn.py

7
docs/Python-API.md


## 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:
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`. If your filename is 3DBall.app, in python, run:
env = UnityEnvironment(file_name=filename, worker_id=0)
env = UnityEnvironment(file_name="3DBall", worker_id=0)
* `file_name` is the name of the environment binary (located in the root directory of the python project), remember to wrap the `file_name` with `""`.
* `file_name` is the name of the environment binary (located in the root directory of the python project).
* `worker_id` indicates which port to use for communication with the environment. For use in parallel training regimes such as A3C.
## Interacting with a Unity Environment

3
python/learn.py


_USAGE = '''
Usage:
learn (<env>) [options]
execute with --help to get more information
Execute with --help to get more information
Options:
--help Show this message.

正在加载...
取消
保存