concept target in category reinforcement learning

appears as: target, target, targets, targets
Grokking Deep Reinforcement Learning

This is an excerpt from Manning's book Grokking Deep Reinforcement Learning.

Table 2.3

Environment Description

Observation space

Observation sample

Action space

Action sample

Reward function

Hotter Colder: Guess a randomly selected number using hints.

Int range 0-3. 0 means no guess yet submitted, 1 means guess is lower than the target, 2 means guess is equal to the target and 3 means guess is higher than the target.

2

Float from -2000.0-2000.0. The float number the agent is guessing.

-909.37

The reward is the squared percentage of the way the agent has guessed toward the target.

Cart Pole: Balance a pole in a cart.

A 4-element vector with ranges: from [-4.8, -Inf, -4.2, -Inf] to [4.8, Inf, 4.2, Inf ].

First element is the cart position, second is the cart velocity, third is pole angle in radians, fourth is the pole velocity at tip.

[-0.16, -1.61, 0.17, 2.44]

Int range 0-1. 0 means push cart left, 1 means push cart right.

0

The reward is 1 for every step taken, including the termination step.

Lunar Lander: Navigate a lander to its landing pad.

An 8-element vector with ranges: from [-Inf, -Inf, -Inf, -Inf, -Inf, -Inf, 0, 0] to [Inf, Inf, Inf, Inf, Inf, Inf, 1, 1]. First element is the x position, the second the y position, the third is the x velocity, the fourth is the y velocity, fifth is the vehicle’s angle, sixth is the angular velocity, last two values are booleans indicating legs contact with the ground.

[ 0.36 , 0.23, -0.63, -0.10, -0.97, -1.73 , 1.0, 0.0]

Int range 0-3. No-op (do nothing), fire left engine, fire main engine, fire right engine.

2

Reward for landing is 200. There is reward for moving from the top to the landing pad, for crashing or coming to rest, for each leg touching the ground, and for firing the engines.

Pong:

Bounce the ball past the opponent, and avoid letting the ball pass you.

A tensor of shape 210, 160, 3.

Values ranging 0-255.

Represents a game screen image.

[[[246, 217, 64], [ 55, 184, 230], [ 46, 231, 179], ..., [ 28, 104, 249], [ 25, 5, 22], [173, 186, 1]],...]]

Int range 0-5. Action 0 is No-op, 1 is Fire, 2 is up, 3 is right, 4 is left, 5 is down. Notice how some actions don’t affect the game in any way. In reality the paddle can

3

The reward is a 1 when the ball goes beyond the opponent, and a -1 when your agent’s paddle misses the ball.

Humanoid: Make robot run as fast as possible and not fall.

A 44-element (or more, depending on the implementation) vector.

Values ranging from

-Inf to Inf.

Represents the positions and velocities of the robot’s joints.

[ 0.6, 0.08, 0.9, 0. , 0., 0., 0., 0., 0.045, 0., 0.47, ..., 0.32, 0., -0.22,..., 0.]

A 17-element vector.

Values ranging from

-Inf to Inf.

Represents the forces to apply to the robot’s joints.

[-0.9, -0.06, 0.6, 0.6, 0.6, -0.06, -0.4, -0.9, 0.5, -0.2, 0.7, -0.9, 0.4, -0.8, -0.1, 0.8,-0.03]

The reward is calculated based on forward motion with a small penalty to

encourage a natural gait.

8.4.4     Fourth decision point: Selecting the targets for policy evaluation

There are multiple ways we can evaluate a policy. More specifically, there are different targets we can use for estimating the action-value function of a policy π. The core targets you learned about are the Monte-Carlo (MC) target, the Temporal-Difference (TD) target, the N-step target, and Lambda target.