浏览代码

added documentation on the broadcast feature

/tag-0.2.0
vincentpierre 7 年前
当前提交
9a3819d9
共有 3 个文件被更改,包括 250 次插入0 次删除
  1. 1
      docs/Readme.md
  2. 12
      docs/broadcast.md
  3. 237
      images/broadcast.png

1
docs/Readme.md


* [Agents SDK Inspector Descriptions](Agents-Editor-Interface.md)
* [Training on the Cloud with Amazon Web Services](Training-on-Amazon-Web-Service.md)
* [Training with Curriculum Learning](curriculum.md)
* [How to use Broadcast](broadcast.md)
## Help
* [Limitations & Common Issues](Limitations-&-Common-Issues.md)

12
docs/broadcast.md


# Broadcast
The Player, Heuristic and Internal brains have been updated to support broadcast. The broadcast feature allows you to collect data from your agents in python without controling them.
## How to use : Unity
To turn it on in Unity, simply check the `Broadcast` box as shown bellow:
![Broadcast](../images/broadcast.png)
## How to use : Python
When you launch your Unity Environment from python, you can see what the agents connected to non-external brains are doing. When calling `step` or `reset` on your environment, you retrieve a dictionary from brain names to `BrainInfo` objects. Each `BrainInfo` the non-external brains set to broadcast.
Just like with an external brain, the `BrainInfo` object contains the fields for `observations`, `states`, `memories`,`rewards`, `local_done`, `agents` and `actions`. Note that `actions` corresponds to the actions that were taken by the agents at the previous step.
Note that when you do a `step` on the environment, you cannot provide actions for non-external brains. If there are no external brains in the scene, simply call `step()` with no arguments.
You can use the broadcast feature to collect data generated by Player, Heuristics or Internal brains game sessions. You can then use this data to train an agent in a supervised context.

237
images/broadcast.png

之前 之后
宽度: 550  |  高度: 518  |  大小: 62 KiB
正在加载...
取消
保存