Utils¶
Utils module.
- class project_name.utils.TypedEnvironment(env)¶
Bases:
object
Environment that selects actions.
- Parameters:
env (Any) – The environment to use.
- close()¶
Close the environment.
- Return type:
None
- render()¶
Render the environment.
- Return type:
Any
- reset()¶
Reset the environment.
- Return type:
tuple
[dict
[str
,Any
],dict
[str
,Any
]]- Returns:
observation (dict[str, Any]) – The observation.
info (dict[str, Any]) – The info.
- step(action)¶
Step the environment.
- Parameters:
action (list[int]) – action: The action to execute.
- Return type:
tuple
[dict
[str
,Any
],float
,bool
,bool
,dict
[str
,Any
]]- Returns:
observation (dict[str, Any]) – The observation.
reward (float) – The reward.
terminated (bool) – Whether the episode has terminated.
truncated (bool) – Whether the episode has truncated.
info (dict[str, Any]) – The info.