ray.rllib.env.multi_agent_episode.MultiAgentEpisode.get_sample_batch#
- MultiAgentEpisode.get_sample_batch() MultiAgentBatch [source]#
Converts this
MultiAgentEpisode
into aMultiAgentBatch
.Each
SingleAgentEpisode
instances inMultiAgentEpisode.agent_epiosdes
will be converted into aSampleBatch
and the environment timestep will be passed as the returned MultiAgentBatch’senv_steps
.- Returns:
A MultiAgentBatch containing all of this episode’s data.