概念
Reinforcement Learning
強化學習(Reinforcement Learning , 簡稱 RL),
就好像在訓練寵物坐下或握手一樣,
透過獎勵(Reward)特定的行為(Action)來達到訓練的目標,
DeepRacer 的角色
Agent
在比賽中是真實的縮小迷你車(1:18),車上帶有鏡頭可以拍攝路況,
在訓練中則是使用模擬器,可以模擬真實世界開車時會遇到的變數,
註:這只是模型車,真實世界的車子會更複雜,變數會更多更不可測。
- Environment
- Action
- Reward
- State
實作
建立資源
預設的 獎勵方程
1 | def reward_function(params): |
除錯
錯誤訊息
Error in IAM role creation
Please try again after deleting the following roles: AWSDeepRacerServiceRole,
AWSDeepRacerSageMakerAccessRole, AWSDeepRacerRoboMakerAccessRole,
AWSDeepRacerLambdaAccessRole, AWSDeepRacerCloudFormationAccessRole.
這是 IAM Roles 已經存在, 通常是你已經建立過了這些 Roles , 只要刪除了就可以了
使用資源與服務
- DeepRacer
- Reinforcement learning > Reinforcement learning
- CloudWatch > Log Groups
- IAM
- AWSDeepRacerServiceRole
- AWSDeepRacerSageMakerAccessRole
- AWSDeepRacerRoboMakerAccessRole
- AWSDeepRacerLambdaAccessRole
- AWSDeepRacerCloudFormationAccessRole.
如何清除
- DeepRacer > 按下 Reset
參考
- AWS 機器學習戰鬥營
- aws-samples/aws-deepracer-workshops
- Introduction to Reinforcement Learning
- Train and Evaluate AWS DeepRacer Models Using the AWS DeepRacer Console - AWS DeepRacer
- 從 DeepRacer 到 Robotaxi:Tesla vs Waymo 的自動駕駛終局
(fin)