- Learn Unity ML-Agents:Fundamentals of Unity Machine Learning
- Micheal Lanham
- 280字
- 2021-08-13 15:58:24
Running a sample
Unity ships the ML-Agents package with a number of prepared samples that demonstrate various aspects of learning and training scenarios. Let's open up Unity and load up a sample project and get a feel for how the ML-Agents run by following this exercise:
- Open the Unity editor and go to the starting Project dialog.
- Click the Open button at the top of the dialog and navigate to and select the ML-Agents/ml-agents/unity-environment folder, as shown in the following screenshot:

Loading the unity-environment project into the editor
- This will load the unity-environment project into the Unity editor. Depending on the Unity version you are using, you may get a warning that the version needs to be upgraded. As long as you are using a recent version of Unity, you can just click Continue. If you do experience problems, try upgrading or downgrading your version of Unity.
- Locate the Scene file in the Assets/ML-Agents/Examples/3DBall folder of the Project window, as shown in the following screenshot:

Locating the example scene file in the 3DBall folder
- Double-click the 3DBall scene file to open the scene in the editor.
- Press the Play button at the top center of the editor to run the scene. You will see that the scene starts running and that balls are being dropped, but the balls just fall off the platforms. This is because the scene starts up in Player mode, which means you can control the platforms with keyboard input. Try to balance the balls on the platform using the arrow keys on the keyboard.
- When you are done running the scene, click the Play button again to stop the scene.
推薦閱讀
- 同步:秩序如何從混沌中涌現(xiàn)
- SQL Server 2016 數(shù)據(jù)庫教程(第4版)
- Python數(shù)據(jù)挖掘:入門、進階與實用案例分析
- Word 2010中文版完全自學手冊
- Hands-On Machine Learning with Microsoft Excel 2019
- 文本挖掘:基于R語言的整潔工具
- Oracle高性能自動化運維
- 聯(lián)動Oracle:設計思想、架構實現(xiàn)與AWR報告
- MySQL DBA修煉之道
- Unreal Engine Virtual Reality Quick Start Guide
- 數(shù)據(jù)指標體系:構建方法與應用實踐
- 算力經(jīng)濟:從超級計算到云計算
- Google Cloud Platform for Architects
- 從Lucene到Elasticsearch:全文檢索實戰(zhàn)
- 數(shù)據(jù)中臺實戰(zhàn):手把手教你搭建數(shù)據(jù)中臺