gym_wrappers#
Source code: tianshou/env/gym_wrappers.py
- class ContinuousToDiscrete(env: Env, action_per_dim: int | list[int])[source]#
Gym environment wrapper to take discrete action in a continuous environment.
- Parameters:
env (gym.Env) – gym environment with continuous action space.
action_per_dim – number of discrete actions in each dimension of the action space.
- class MultiDiscreteToDiscrete(env: Env)[source]#
Gym environment wrapper to take discrete action in multidiscrete environment.
- Parameters:
env (gym.Env) – gym environment with multidiscrete action space.