更新时间:2023-12-01 23:12:16
错误消息指出load_model
函数没有2个参数.您需要将其更改为
The error message says that the load_model
function does not have 2 arguments. You need to change that to
agent.brain.model.load_model('setBdqn.mod')
我假设您将对save_model
的调用更改为agent.brain.model.save_model('setBdqn.mod', False)
-本教程示例将模型保存到名为dqn.mod
的文件中.
I'm assuming that you changed the call to save_model
to be agent.brain.model.save_model('setBdqn.mod', False)
- the tutorial examples saves the model to a file named dqn.mod
.