Python - 有一个意外的关键字参数'scope'



我正在尝试从Deep Assist GitHub Repo运行1.0-lunarlander-sim.ipynb文件。但是我一直遇到错误: got an unexpected keyword argument 'scope'

    raw_full_pilot_policy, full_pilot_reward_data = deepq.learn(
  env,
  q_func=full_pilot_q_func,
  max_timesteps=max_timesteps,
  scope=full_pilot_scope,
  **pilot_dqn_learn_kwargs
)

(不知道deepq(,通过查看其代码,您可以看到范围不是学习函数的有效关键字参数。看这里:https://github.com/openai/baselines/blob/master/baselines/deepq/deepq.py#l95

似乎在该提交中删除了它,也许安装了OpenAI/Baselines的版本

相关内容

最新更新