ray.rllib.env.multi_agent_episode.MultiAgentEpisode.get_sample_batch#

MultiAgentEpisode.get_sample_batch() MultiAgentBatch[source]#

Converts this MultiAgentEpisode into a MultiAgentBatch.

Each SingleAgentEpisode instances in MultiAgentEpisode.agent_epiosdes will be converted into a SampleBatch and the environment timestep will be passed as the returned MultiAgentBatch’s env_steps.

Returns:

A MultiAgentBatch containing all of this episode’s data.