mlpy.mdp.stateaction.Action.get_name

classmethod Action.get_name(features)[source]

Retrieves the name of the action.

Retrieve the name of the action using the action’s description. In the case that all features are zero the action is considered a no-op action.

Parameters:

features : ndarray

A feature array.

Returns:

str :

The name of the action.