Skip to content

env.sorted_multi_agent_space

Full path: schola.rllib.env.sorted_multi_agent_space

schola.rllib.env.sorted_multi_agent_space

sorted_multi_agent_space

sorted_multi_agent_space(multi_agent_space)

Sorts the spaces in a multi-agent space alphabetically by agent ID.

Parameters

multi_agent_space (Dict[int,gym.spaces.Dict]) : The multi-agent space to sort.

Returns

The sorted multi-agent space.

Return type: gym.spaces.Dict