ray.rllib.env.env_runner.EnvRunner.sample#

abstract EnvRunner.sample(**kwargs) Any[source]#

Returns experiences (of any form) sampled from this EnvRunner.

The exact nature and size of collected data are defined via the EnvRunner’s config and may be overridden by the given arguments.

Parameters:

**kwargs – Forward compatibility kwargs.

Returns:

The collected experience in any form.