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 aMultiAgentEpisodepickable state. For recreating aMultiAgentEpisodefrom 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
MultiAgentEpisodeinstance created from the state data.