mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-18 21:06:59 +00:00
Mention truncation in the migration guide (#105)
This commit is contained in:
committed by
GitHub
parent
e8897ff677
commit
82b839fcd1
@@ -94,6 +94,13 @@ For users looping through an environment, they should modify ``done = terminated
|
|||||||
For training libraries, the primary difference is to change ``done`` to ``terminated``, indicating whether bootstrapping should or shouldn't happen.
|
For training libraries, the primary difference is to change ``done`` to ``terminated``, indicating whether bootstrapping should or shouldn't happen.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## TimeLimit Wrapper
|
||||||
|
```{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``
|
||||||
|
```
|
||||||
|
|
||||||
## Environment Render
|
## Environment Render
|
||||||
|
|
||||||
```{eval-rst}
|
```{eval-rst}
|
||||||
|
Reference in New Issue
Block a user