coopihc.observation.ExampleObservationEngine.ExampleObservationEngine
- class ExampleObservationEngine(observable_state, *args, **kwargs)[source]
Bases:
coopihc.observation.BaseObservationEngine.BaseObservationEngine
A simple example where the engine is only able to see a particular state (observable_state).
- Parameters
observable_state (string) – only state that can be observed
Methods
Apply this decorator to use bundle.game_state as default value to observe if game_state = None
observe
observe_from_substates
reset _summary_
Attributes
returns the last action
bundle
returns the last observation
unwrapped
- static default_value(func)
Apply this decorator to use bundle.game_state as default value to observe if game_state = None
- reset(random=True)
reset _summary_
Empty by default.
- Parameters
random (bool, optional) – whether states internal to the observation engine are reset randomly, defaults to True. Useful in case of subclassing the Observation Engine.