pantheonrl.common.observation.Observation

class Observation(obs, state=None, action_mask=None)[source]

Bases: object

Representation 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

action_mask

The mask of legal actions

obs

The (partial) observation to choose actions

state

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