pymasep.common.controller
Classes
Abstract controller to control an agent in the environment |
Module Contents
- class pymasep.common.controller.Controller(environment)
Abstract controller to control an agent in the environment
- Parameters:
environment – environment for the controller
- environment
- action_choice(observation, agent)
Choose the action.
- Parameters:
observation (pymasep.common.State) – The observation used to choose the action.
agent (pymasep.common.Agent) – The agent who chooses the action.
- Returns:
The action (pymasep.common.Action) chose for the agent.
- on_observe(observation, reward=None)
Do something when the agent observes the state and possibly a reward.
Useful for learning controllers.
- Parameters:
observation (pymasep.common.State) – The observation used to choose the action.
reward (Optional[Any]) – The reward obtained.