-
Notifications
You must be signed in to change notification settings - Fork 43
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
(To be discussed) (Idea) feature: multi dimensional reward #225
base: develop
Are you sure you want to change the base?
Conversation
My first impression was that this change could be closer to the implementation of general reinforcement learning. Also, it can be a simple code 👍 |
Yes, |
@@ -208,7 +208,7 @@ def compose_losses(outputs, log_selected_policies, total_advantages, targets, ba | |||
entropy = dist.Categorical(logits=outputs['policy']).entropy().mul(tmasks.sum(-1)) | |||
losses['ent'] = entropy.sum() | |||
|
|||
base_loss = losses['p'] + losses.get('r', 0) | |||
base_loss = losses['p'] + losses.get('v', 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wow, thank you
Do we delete OUTCOME, or use OUTCOME as the first dimension of REWARD if it is defined?