-
Notifications
You must be signed in to change notification settings - Fork 653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing fields for checkpoint in DQNAgent ? #285
Comments
@billh0420 Just trying to ensure I understand it correctly. Do you mean adding these fields to the dictionary? |
Since these field values are not checkpointed (except for learning rate), their values will not be restored when reloaded. The learning rate probably is restored (didn't check but it seems like it would be). But, it wouldn't hurt to pass it (the learning rate) again to the DQNAgent init. |
`
` |
`
` |
@billh0420 It makes sense to me. I agree that it is better to restore than initiate again. Do you want me to fix it, or you fix it with a PR? |
I will fix it with a PR. Can I delete the line "self.use_raw = False" in the init since 'use_raw' is never referenced? |
@billh0420 Yes, sure. I agree with it, as it is never referenced. |
Hi @billh0420! I contributed the checkpoint code so I can provide some context. Thanks for your fixes.
This is actually a property of the estimator, not of the agent, and so adding it to the agent is a bit redundant. For For
will always be true. |
@kaiks said "For model_name - I don't see it included in your PR ..." I redid DQNAgent for my own purpose (essentially same) and I added the attribute 'model_name'. RLCard doesn't have it. @kaiks said "For save_path and save_every it makes sense to store them if you just want to continue training..." Yes, I want to continue training. I also use save_path to know where 'fig.png' and 'log.txt' and 'performance.csv' should be stored. I also have some other related files to store in that path. |
I think the following changes need to be made for DQNAgent checkpoint:
A) for def checkpoint_attributes(self):
`
`
B) for def from_checkpoint(cls, checkpoint):
`
`
The text was updated successfully, but these errors were encountered: