浏览代码

Updating the migrating doc (#1137)

/develop-generalizationTraining-TrainerController
Arthur Juliani 6 年前
当前提交
108e770e
共有 1 个文件被更改,包括 30 次插入0 次删除
  1. 30
      docs/Migrating.md

30
docs/Migrating.md


# Migrating
## Migrating from ML-Agents toolkit v0.4 to v0.5
### Important
* The Unity project `unity-environment` has been renamed `MLAgentsSDK`.
* The `python` folder has been renamed to `ml-agents`. It not contains two
packages, `mlagents.env` and `mlagents.trainers`. `mlagents.env` can be used
to interact directly with a Unity environment, while `mlagents.trainers`
contains the classes for training agents.
### Unity API
* Discrete Actions now have branches. You can now specify concurrent discrete
actions. You will need to update the Brain Parameters in the Brain Inspector
in all your environments.
### Python API
* 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).
* It is now required to specify the path to the yaml trainer configuration file
when running `mlagents-learn`. For example, see
[trainer_config.yaml](../config/trainer_config.yaml).
* 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
[Curriculum training documentation](https://github.com/Unity-Technologies/ml-agents/blob/master/docs/Training-Curriculum-Learning.md)
for more information.
## Migrating from ML-Agents toolkit v0.3 to v0.4
### Unity API

正在加载...
取消
保存