Skip to content
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

Feature Request: expose a target_update method for DQNAgent #907

Open
billh0420 opened this issue Dec 26, 2023 · 0 comments
Open

Feature Request: expose a target_update method for DQNAgent #907

billh0420 opened this issue Dec 26, 2023 · 0 comments

Comments

@billh0420
Copy link

Currently, DQNAgent updates the target network periodically.

Would it make sense to provide a target_update method in DQNAgent to update the target network?

Reasons:

  1. I find it confusing to determine how often and how frequently the target network is being updated.
  2. If I could call the target_update method explicitly in my training loop, then I could easily determine how often and how frequently the target network is being updated.
  3. When the training loop ends, I can insure that the target network is updated at the end (before the agent is being saved).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant