mlpy.mdp.stateaction.RewardFunction.get

RewardFunction.get(*args, **kwargs)[source]

Retrieve the reward value.

If cb_get is set, the callback will be called to retrieve the value.

Parameters:

args : tuple

Positional arguments passed to the callback.

kwargs : dict

Non-positional arguments passed to the callback.

Returns:

float :

The (calculated) reward value.