pantheonrl.common.observation.Observation
- class Observation(obs, state=None, action_mask=None)[source]
Bases:
objectRepresentation of a single observation provided by an environment.
- Parameters:
obs (ndarray) – the (partial) observation that an agent receives
state (ndarray) – the full state information
action_mask (ndarray | None) – a mask specifying what actions are legal. If it is None, all actions are permitted
Methods
Attributes
The mask of legal actions
The (partial) observation to choose actions
The full state information, typically used for value functions
- action_mask: ndarray | None = None
The mask of legal actions
- obs: ndarray
The (partial) observation to choose actions
- state: ndarray
The full state information, typically used for value functions