- 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
推薦閱讀
- 虛擬儀器設(shè)計測控應用典型實例
- Windows XP中文版應用基礎(chǔ)
- Windows程序設(shè)計與架構(gòu)
- 塊數(shù)據(jù)5.0:數(shù)據(jù)社會學的理論與方法
- 網(wǎng)絡(luò)安全管理實踐
- 電腦上網(wǎng)輕松入門
- 空間機械臂建模、規(guī)劃與控制
- Excel 2007終極技巧金典
- 智能制造系統(tǒng)及關(guān)鍵使能技術(shù)
- WOW!Photoshop CS6完全自學寶典
- Creating ELearning Games with Unity
- 步步驚“芯”
- 大數(shù)據(jù)素質(zhì)讀本
- Mastering DynamoDB
- 計算機應用基礎(chǔ)學習指導與練習(Windows XP+Office 2003)