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

(Idea) feature: update configuration for turn-based #241

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

YuriCat
Copy link
Contributor

@YuriCat YuriCat commented Jan 22, 2022

Turn-based batch creation and zero-sum averaging are different and independent.
Moreover, these should be set False at default for safety.

handyrl/train.py Outdated
@@ -165,7 +165,10 @@ def forward_prediction(model, hidden, batch, args):
o = o.view(*batch['turn_mask'].size()[:2], -1, o.size(-1))
if k == 'policy':
# gather turn player's policies
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment and line 170 comment is duplicated.

@ikki407
Copy link
Member

ikki407 commented Jan 24, 2022

Thank you, it becomes that the two functions can be totally understood and easy to be used by users.

@ikki407
Copy link
Member

ikki407 commented Jan 24, 2022

Could you update parameters.md?
https://github.com/DeNA/HandyRL/blob/master/docs/parameters.md

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

Successfully merging this pull request may close these issues.

None yet

2 participants