offswitch_cartpole.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:gym 作者: openai 项目源码 文件源码
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.]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号