ray.rllib.env.single_agent_episode.SingleAgentEpisode.from_state#

static SingleAgentEpisode.from_state(state: Dict[str, Any]) SingleAgentEpisode[source]#

Creates a new SingleAgentEpisode instance from a state dict.

Parameters:

state – The state dict, as returned by self.get_state().

Returns:

A new SingleAgentEpisode instance with the data from the state dict.