OSError:[WinError 529697949]Windows错误0xe06d7363 python Spyder

2024-04-26 23:13:46 发布

您现在位置:Python中文网/ 问答频道 /正文

伙计们,过去几天我一直在试图修复这个错误,但什么都没有起作用。我无法在网上找到它的真正含义。当我试图给环境一个行动空间时,它也发生在spyder中

 def __init__(self, full_action_space = False):
    master = None
    game='pong'
    obs_type='ram'
    frameskip=(2, 5)
    repeat_action_probability=0
    full_action_space=True
    self.master = master        

    self.ale = atari_py.ALEInterface()

    # Tune (or disable) ALE's action repeat:
    # https://github.com/openai/gym/issues/349
    assert isinstance(repeat_action_probability, (float, int)), \
            "Invalid repeat_action_probability: {!r}".format(repeat_action_probability)
    self.ale.setFloat(
            'repeat_action_probability'.encode('utf-8'),
            repeat_action_probability)

    #self.seed()
    if full_action_space:
       self._action_set = self.ale.getLegalActionSet() 
    else: 
       self._action_set = self.ale.getMinimalActionSet()
    self.action_space = spaces.Discrete(len(self._action_set))

底部的部分是导致文件运行GetLegaActionSet()和getMinimalActionSet()的部分,因为删除它们会使文件自行运行,但根本不会运行任何训练。我不确定我是否只是没有通过我应该通过的东西,或者是文件问题


Tags: 文件selfmaster环境错误actionspacefull