garage.envs.env_spec module

EnvSpec class.

class EnvSpec(observation_space, action_space)[source]

Bases: garage._dtypes.InOutSpec

Describes the action and observation spaces of an environment.

Parameters:
  • observation_space (akro.Space) – The observation space of the env.
  • action_space (akro.Space) – The action space of the env.
action_space

Get action space.

Returns:Action space of the env.
Return type:akro.Space
observation_space

Get observation space of the env.

Returns:Observation space.
Return type:akro.Space