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

Why the value loss need to devide 2 in line 108 of a3c.py #28

Open
onlytailei opened this issue Jul 25, 2017 · 1 comment
Open

Why the value loss need to devide 2 in line 108 of a3c.py #28

onlytailei opened this issue Jul 25, 2017 · 1 comment

Comments

@onlytailei
Copy link

v_loss += (v - R) ** 2 / 2

But the original paper just calculate the derivative of the (V-R)^2 right?

@onlytailei
Copy link
Author

onlytailei commented Aug 19, 2017

And you mentioned in https://github.com/muupan/async-rl/wiki
They multiply the gradients of V by 0.5. So in the a3c.py there are the parameters (pi_loss_coef=1.0, v_loss_coef=0.5)
But why there is another 0.5 in v_loss?

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