问题
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