浏览代码

clarify the python docs and learn.py help message

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

2
docs/Python-API.md


env = UnityEnvironment(file_name=filename, worker_id=0)
```
* `file_name` is the name of the environment binary (located in the root directory of the python project).
* `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 `""`.
* `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


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

正在加载...
取消
保存