浏览代码

Adding specific mlagents-learn vs. learn.py example. (#1157)

* Adding specific mlagents-learn vs. learn.py example.

* Specifying where to run mlagents-learn in Migrating.md.
/develop-generalizationTraining-TrainerController
Arthur Juliani 7 年前
当前提交
b07dbd66
共有 1 个文件被更改,包括 18 次插入3 次删除
  1. 21
      docs/Migrating.md

21
docs/Migrating.md


* In order to run a training session, you can now use the command
`mlagents-learn` instead of `python3 learn.py` after installing the `mlagents`
packages. This change is documented
[here](Training-ML-Agents.md#training-with-mlagents-learn).
[here](Training-ML-Agents.md#training-with-mlagents-learn). For example,
if we previously ran
```sh
python3 learn.py 3DBall --train
```
from the `python/` directory, we now run
```sh
mlagents-learn config/trainer_config.yaml --env=3DBall --train
```
from the directory where we installed the ML-Agents Toolkit.
when running `mlagents-learn`. For example, see
[trainer_config.yaml](../config/trainer_config.yaml).
when running `mlagents-learn`. For an example trainer configuration file, see
[trainer_config.yaml](../config/trainer_config.yaml). An example of passing
a trainer configuration to `mlagents-learn` is shown above.
* The environment name is now passed through the `--env` option.
* Curriculum files must now be placed into a folder and be named appropriately.
Refer to the

正在加载...
取消
保存