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

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
主站蜘蛛池模板: 东台市| 惠来县| 当阳市| 嵊泗县| 榕江县| 红安县| 沙坪坝区| 正定县| 澄江县| 巴青县| 通道| 河北区| 汽车| 大同县| 嘉定区| 招远市| 天台县| 东丰县| 乌拉特后旗| 偏关县| 政和县| 海阳市| 涞源县| 安多县| 新安县| 通州区| 张掖市| 怀化市| 晋州市| 茂名市| 根河市| 泸州市| 准格尔旗| 青河县| 张北县| 招远市| 高雄县| 田东县| 东乌| 江西省| 永平县|