def __init__(self):
super(OffSwitchCartpoleEnv, self).__init__()
self.observation_space = spaces.Tuple((spaces.Discrete(2), self.observation_space))
self.left_threshold_crossed = False
# number of episodes in which the cart crossed the left/right threshold (first).
self.num_crosses = [0.,0.]
offswitch_cartpole.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录