ray.rllib.policy.sample_batch.MultiAgentBatch.__init__#

MultiAgentBatch.__init__(policy_batches: Dict[str, SampleBatch], env_steps: int)[source]#

Initialize a MultiAgentBatch instance.

Parameters:
  • policy_batches – Mapping from policy ids to SampleBatches of experiences.

  • env_steps – The number of environment steps in the environment this batch contains. This will be less than the number of transitions this batch contains across all policies in total.