CNTK python api - continue training a model

半城伤御伤魂 提交于 2019-12-11 06:18:24

问题


I have tried the example

The example works fine. I can restart the training, but am unable to continue the training after a model has been trained. I have tried

agent.brain.model.load_model('setBdqn.mod', False) 

but get an error message.


回答1:


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')

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.



来源:https://stackoverflow.com/questions/40987625/cntk-python-api-continue-training-a-model

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!