gym_world_wrapper
- class gym_world_wrapper.GymWorldWrapper(gym_env: Env, discount: float = 0.1)
The GymWorldWrapper wrapper for OpenAI-Gym environments
- __init__(gym_env: Env, discount: float = 0.1) None
Constructor
- Parameters
gym_env (The raw OpenAI-Gym environment) –
discount (The discount factor) –
- property n_actions: int
Returns the number of actions in the action space
- Return type
Number of actions
- property n_states: int
Returns the number of states in the state space
- Return type
Number of states
- render(mode: str) None
Render the underlying environment
- Parameters
mode (Rendering mode. This depends on the) –
environment (underlying OpenAI-Gym) –
- Return type
None
- reset() TimeStep
Reset the environment
- Return type
An instance of the TimeStep class
- sample_action() Action
Sample an action from the observation space
- Return type
The sampled action
- step(action: Action) TimeStep
Step in the environment
- Parameters
action (The action to execute in the environment) –
- Return type
An instance of the TimeStep class