L1Reward

class coba.primitives.L1Reward

A reward function using L1 distance.

Constructors

__init__(argmax: float) None

Instantiate an L1Reward.

Parameters:

argmax – The location where reward is greatest.

Methods

__call__(action: float) float

Get reward for action.

Parameters:

action – An action taken.

Returns:

Reward received for the action.