stable_learning_control.utils.gym_utils
Contains utilities that can be used with the gymnasium package.
Attributes
Functions
|
Checks whether object is a gymnasium environment. |
|
Checks whether a given space is continuous. |
|
Checks whether a given space is discrete. |
|
Make sure that env_name is a real, registered gymnasium environment. |
Module Contents
- stable_learning_control.utils.gym_utils.is_gym_env(env)[source]
Checks whether object is a gymnasium environment.
- stable_learning_control.utils.gym_utils.is_continuous_space(space)[source]
Checks whether a given space is continuous.
- Parameters:
space (
gym.spaces
) – The gymnasium space object.- Returns:
Boolean specifying whether the space is discrete.
- Return type: