from_state#

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

Creates a new SingleAgentEpisode instance from a state dict.

Parameters:

state (Dict[str, Any]) – The state dict, as returned by self.get_state().

Returns:

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

Return type:

SingleAgentEpisode