mlpy.mdp.discrete.DiscreteModel.get_actions

DiscreteModel.get_actions(state=None)[source]

Retrieve the available actions for the given state.

Parameters:

state : MDPState

The state for which to get the actions.

Returns:

list :

The actions that can be taken in this state.

Raises:

ValueError:

If the actions have not been initialized.