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

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
主站蜘蛛池模板: 合水县| 赤水市| 永春县| 商南县| 承德县| 民县| 隆子县| 太仆寺旗| 东台市| 如东县| 娱乐| 平江县| 卢湾区| 平罗县| 鹤峰县| 抚顺市| 葵青区| 丹巴县| 南华县| 北海市| 娄烦县| 平远县| 织金县| 绥滨县| 定西市| 礼泉县| 手游| 温州市| 定陶县| 军事| 即墨市| 吉水县| 金川县| 固原市| 文水县| 正定县| 军事| 改则县| 白玉县| 赣州市| 黎川县|