seldonian.RL.environments.Environment.Environment¶
- class Environment¶
Bases:
object
Base class for all RL environments
- __init__()¶
- __repr__()¶
Return repr(self).
Methods
- get_env_description()¶
Get environment description. Override this method in child class implementation
- get_observation()¶
Get current observation. Override this method in child class implementation
- reset()¶
Reset observation to initial observation. Override this method in child class implementation
- start_visualizing()¶
Turn on visualization debugger.
- stop_visualizing()¶
Turn off visualization debugger.
- terminated()¶
Get the terminal observation
- transition(action)¶
Transition to a new observation given an action. Override this method in child class implementation
- Parameters:
action – A possible action in the environment
- visualize()¶
Print out current observation, useful for debugging. Override this method in child class implementation