ray.rllib.env.multi_agent_episode.MultiAgentEpisode.from_state#
- static MultiAgentEpisode.from_state(state: Dict[str, Any]) MultiAgentEpisode [source]#
Creates a multi-agent episode from a state dictionary.
See
MultiAgentEpisode.get_state()
for creating a state for aMultiAgentEpisode
pickable state. For recreating aMultiAgentEpisode
from a state, this state has to be complete, i.e. all data must have been stored in the state.- Parameters:
state – A dict containing all data required to recreate a MultiAgentEpisode`. See
MultiAgentEpisode.get_state()
.- Returns:
A
MultiAgentEpisode
instance created from the state data.