Skip to content

make_procgen_env

source

.make_procgen_env(
   env_id: str = 'bigfish', num_envs: int = 64, device: str = 'cpu', seed: int = 1,
   gamma: float = 0.99, num_levels: int = 200, start_level: int = 0,
   distribution_mode: str = 'easy'
)


Create Procgen environments.

Args

  • env_id (str) : Name of environment.
  • num_envs (int) : Number of environments.
  • device (str) : Device to convert the data.
  • seed (int) : Random seed.
  • gamma (float) : A discount factor.
  • num_levels (int) : The number of unique levels that can be generated. Set to 0 to use unlimited levels.
  • start_level (int) : The lowest seed that will be used to generated levels. 'start_level' and 'num_levels' fully specify the set of possible levels.
  • distribution_mode (str) : What variant of the levels to use, the options are "easy", "hard", "extreme", "memory", "exploration".

Returns

The vectorized environment.


make_envpool_procgen_env

source

.make_envpool_procgen_env(
   env_id: str = 'bigfish', num_envs: int = 64, device: str = 'cpu', seed: int = 1,
   gamma: float = 0.99, num_levels: int = 200, start_level: int = 0,
   distribution_mode: str = 'easy', asynchronous: bool = True
)


Create Procgen environments.

Args

  • env_id (str) : Name of environment.
  • num_envs (int) : Number of environments.
  • device (str) : Device to convert the data.
  • seed (int) : Random seed.
  • gamma (float) : A discount factor.
  • num_levels (int) : The number of unique levels that can be generated. Set to 0 to use unlimited levels.
  • start_level (int) : The lowest seed that will be used to generated levels. 'start_level' and 'num_levels' fully specify the set of possible levels.
  • distribution_mode (str) : What variant of the levels to use, the options are "easy", "hard", "extreme", "memory", "exploration".
  • asynchronous (bool) : True for creating asynchronous environments, and False for creating synchronous environments.

Returns

The vectorized environments.