pymasep.common.controller

Classes

Controller

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:
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.