官术网_书友最值得收藏!

Creating an environment

One thing you may have noticed while looking over the last example was that an ML-Agent environment requires a bit of custom setup. Unity documentation recommends that an ML environment be constructed of Academy, Agent, and Brain objects with associated scripts. There is a Template folder in the ML-Agents project which we will use to configure and set up a simple environment. Let's jump back to the Unity editor and get started setting up our first simple ML environment:

  1. Locate the Template folder in the ML-Agents folder within the Project window of the editor.  
  2. Right-click (Command Click on macOS) on the Template folder and select Show in Explorer from the context menu. This will open an explorer window with the files. 
  3. Select and copy the Template folder.
  4. Navigate up two levels to the Assets folder and paste the copied folder. This will add the Template folder to the root Assets folder.
  5. Rename the Template folder to Simple.
When you return to the editor, you will see a few namespace errors due to the duplicate Template scripts. We will fix that shortly.
  1. Return to the Unity editor and confirm the folder and files have been copied to the new Simple folder, as shown in the following screenshot:
Verifying that the Simple folder was created
  1. Double-click on the Scene to open it in the editor.
主站蜘蛛池模板: 安化县| 刚察县| 保定市| 华阴市| 塔河县| 西和县| 新昌县| 会东县| 甘泉县| 陇川县| 乌兰县| 红桥区| 高淳县| 克什克腾旗| 海宁市| 岢岚县| 文水县| 平山县| 碌曲县| 镇安县| 都兰县| 贺州市| 固始县| 桦甸市| 措美县| 云浮市| 灵石县| 兴隆县| 丹凤县| 措勤县| 江西省| 西盟| 博乐市| 年辖:市辖区| 金川县| 酒泉市| 太白县| 高尔夫| 日照市| 静宁县| 林西县|