mlpy.agents.modules.LearningModule.choose_action

LearningModule.choose_action(state)[source]

Choose the next action.

The next action the agent will execute is selected based on the current state and the policy that has been derived by the learner so far.

Parameters:

state : MDPState

The current state the agent is in.

Returns:

MDPAction :

The next action