【问题标题】:OpenAI gym player modeOpenAI 健身房玩家模式
【发布时间】:2018-03-27 11:43:51
【问题描述】:

有谁知道如何以玩家身份运行 OpenAI 健身房环境之一。就像让人类玩家玩一轮推车杆一样?我已经看到有 env.mode = 'human' 但我无法让它正常运行。我尝试按照此处给出的示例进行操作 https://www.pinchofintelligence.com/getting-started-openai-gym/,但它似乎对我不起作用。

如果您能提供任何帮助,我们将不胜感激。

谢谢

【问题讨论】:

    标签: python machine-learning reinforcement-learning openai-gym openair


    【解决方案1】:

    我找到了如何为环境启用播放模式。

    https://github.com/openai/gym/blob/master/gym/utils/play.py

    【讨论】:

      【解决方案2】:

      我今天正在试验这个,希望这会有所帮助:

      env = gym.make('Breakout-v0')
      gym.utils.play.play(env, zoom=3)
      

      【讨论】:

      • AttributeError: module 'gym.utils' has no attribute 'play' :s
      • 尝试from gym.utils import play 然后play.play(gym.make('Breakout-v0'), zoom=3)
      猜你喜欢
      • 2019-02-05
      • 2019-10-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多