gxm.Transition#
- class Transition(prev_obs, prev_info, action, reward, terminated, truncated, obs, info)#
Bases:
objectClass representing a single transition \((S_i, A_i, R_i, S_{i+1})\) in an environment.
- __init__(prev_obs, prev_info, action, reward, terminated, truncated, obs, info)#
Methods
__init__(prev_obs, prev_info, action, ...)Attributes
Return whether the episode has ended (either terminated or truncated).
-
action:
Any#
- property done: Array#
Return whether the episode has ended (either terminated or truncated).
-
info:
dict[str,Any]#
-
obs:
Any#
-
prev_info:
dict[str,Any]#
-
prev_obs:
Any#
-
reward:
Array#
-
terminated:
Array#
-
truncated:
Array#