这是indexloc提供的服务,不要输入任何密码
Skip to content

Hotfix: fix reward_metric & n_episode bug in onpolicy trainer #306

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

Merged
merged 1 commit into from
Mar 8, 2021

Conversation

ChenDRAG
Copy link
Collaborator

@ChenDRAG ChenDRAG commented Mar 8, 2021

onpolicy trainer forgets to check if 'n/ep' is 0 before passing rew to reward_metric, because 'n/ep' is always not 0 in the past, but in step_collect mode, situation has changed.

@ChenDRAG ChenDRAG requested review from Trinkle23897 and danagi and removed request for Trinkle23897 March 8, 2021 03:28
@Trinkle23897 Trinkle23897 merged commit 5c53f8c into thu-ml:master Mar 8, 2021
realiti4 added a commit to realiti4/tianshou that referenced this pull request Mar 8, 2021
fix reward_metric & n_episode bug in on policy algorithm (thu-ml#306)
BFAnas pushed a commit to BFAnas/tianshou that referenced this pull request May 5, 2024
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.

2 participants