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

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
主站蜘蛛池模板: 兴国县| 琼海市| 尉氏县| 上饶县| 榆树市| 尼玛县| 崇阳县| 吐鲁番市| 广州市| 油尖旺区| 海口市| 平安县| 万年县| 余姚市| 上蔡县| 嘉义市| 观塘区| 深泽县| 专栏| 青冈县| 保康县| 宜丰县| 屏南县| 牟定县| 仲巴县| 金川县| 武冈市| 固始县| 白水县| 都匀市| 大渡口区| 徐闻县| 佳木斯市| 金门县| 石家庄市| 喜德县| 上高县| 德钦县| 沂南县| 安泽县| 兖州市|