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

Question about the way how to update actor #65

Open
choasLC opened this issue Sep 30, 2021 · 1 comment
Open

Question about the way how to update actor #65

choasLC opened this issue Sep 30, 2021 · 1 comment

Comments

@choasLC
Copy link

choasLC commented Sep 30, 2021

I don't really follow the way how you update the actor. From my understanding, the chain rule is required for the gradient of the parameters in the actor, right? But, I did not see that in your train model. I may be wrong, but if you could give me a hint, that will be wonderful!!

@chengdusunny
Copy link

Hello, I am not the contributor of this program, but maybe I can help you on this problem. The actor network and Q network is updated together by calling the function loss = agent.update(trainers, train_step), in train.py. It is very convenient to use since the authors have done this for us and what we need to do is to simply call the function.

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

2 participants