- PyTorch 1.x Reinforcement Learning Cookbook
- Yuxi (Hayden) Liu
- 133字
- 2021-06-24 12:34:39
Simulating the CartPole environment
In this recipe, we will work on simulating one more environment in order to get more familiar with Gym. The CartPole environment is a classic one in reinforcement learning research.
CartPole is a traditional reinforcement learning task in which a pole is placed upright on top of a cart. The agent moves the cart either to the left or to the right by 1 unit in a timestep. The goal is to balance the pole and prevent it from falling over. The pole is considered to have fallen if it is more than 12 degrees from the vertical, or the cart moves 2.4 units away from the origin. An episode terminates when any of the following occurs:
- The pole falls over
- The number of timesteps reaches 200
推薦閱讀
- Unreal Engine:Game Development from A to Z
- Excel 2007函數與公式自學寶典
- 計算機控制技術
- Creo Parametric 1.0中文版從入門到精通
- 3D Printing for Architects with MakerBot
- 運動控制器與交流伺服系統的調試和應用
- 項目管理成功利器Project 2007全程解析
- 運動控制系統應用與實踐
- Linux嵌入式系統開發
- Word 2007,Excel 2007辦公應用融會貫通
- 生物3D打?。簭尼t療輔具制造到細胞打印
- INSTANT VMware vCloud Starter
- Linux系統下C程序開發詳解
- 人工智能:智能人機交互
- R Statistics Cookbook