且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

CNTK Python API-继续训练模型

更新时间: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.