mlpy.experiments.task.SearchTask.get_reward

SearchTask.get_reward(state, action)

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.