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

what is the definition of actor_loss in ddpg_agent,.py? #21

Open
whynpt opened this issue Dec 20, 2021 · 1 comment
Open

what is the definition of actor_loss in ddpg_agent,.py? #21

whynpt opened this issue Dec 20, 2021 · 1 comment

Comments

@whynpt
Copy link

whynpt commented Dec 20, 2021

 actor_loss = -self.critic_network(inputs_norm_tensor, actions_real).mean()
 actor_loss += self.args.action_l2 * (actions_real / self.env_params['action_max']).pow(2).mean()

I think the output of critic_network is enough to be the actor_loss. So is it a regularizer or trick?
it would be better for me to reply in Chinese.

@TianhongDai
Copy link
Owner

@whynpt It's more like a regularizer, make sure the action will not move too much.

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