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

Mention truncation in the migration guide #105

Merged
merged 1 commit into from
Jan 5, 2023

Conversation

RedTachyon
Copy link
Member

See openai/gym#3102.

This adds an explicit mention of this change to the migration guide, also including the edge case where terminated == truncated == True

Can someone familiar with the docs format check if the code is written properly?

```{eval-rst}
In v21, the :class:`TimeLimit` wrapper added an extra key in the ``info`` dictionary ``TimeLimit.truncated`` whenever the agent reached the time limit without reaching a terminal state.

In v26, this information is instead communicated through the `truncated` return value described in the previous section, which is `True` if the agent reaches the time limit, whether or not it reaches a terminal state. The old dictionary entry is equivalent to ``truncated and not terminated``
Copy link
Contributor

Choose a reason for hiding this comment

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

As discussed in #101, truncated can be true without the agent reaching the timelimit.

As suggested in pseudo-rnd-thoughts/gym#1 (comment), it would also be nice to add a TL;DR codeblock as done by pytorch for breaking changes: https://github.com/pytorch/pytorch/releases/tag/v1.12.0

@pseudo-rnd-thoughts pseudo-rnd-thoughts merged commit 82b839f into main Jan 5, 2023
@pseudo-rnd-thoughts pseudo-rnd-thoughts deleted the RedTachyon-patch-1 branch January 24, 2023 13:13
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.

3 participants