mlpy.experiments.task.Task.get_reward

Task.get_reward(state, action)[source]

Retrieve the reward.

Retrieve the reward for the given state and action from the environment.

Parameters:

state : State

The current state.

action : Action

The current action.

Returns:

float :

The reward.