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

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.
主站蜘蛛池模板: 赞皇县| 华阴市| 达拉特旗| 东方市| 宝清县| 车致| 高陵县| 武功县| 遵义县| 洛南县| 井冈山市| 霸州市| 和静县| 涟水县| 驻马店市| 阳城县| 资阳市| 清涧县| 富川| 阿图什市| 舒城县| 德安县| 封丘县| 日喀则市| 准格尔旗| 富锦市| 松阳县| 杭锦旗| 宁国市| 威宁| 曲靖市| 会泽县| 庆云县| 开平市| 绥滨县| 马关县| 惠来县| 灵宝市| 塔河县| 宝兴县| 新建县|