Table of Contents

Delegate PlayPlotMetrics

Namespace
Gym.Utils
Assembly
Gym.Rendering.dll

What PlayPlot computes its points with: a function of one transition (the arguments of PlayCallback) returning one value per plot, in the order of PlotNames.

public delegate IEnumerable<double> PlayPlotMetrics(object? obsT, object? obsTp1, object? action, double rew, bool terminated, bool truncated, Info info)

Parameters

obsT object

The observation before the action (the reset's (obs, info) after a reset, as play passes it).

obsTp1 object

The observation after the action.

action object

The action.

rew double

The reward.

terminated bool

Whether the episode ended in a terminal state.

truncated bool

Whether the episode was cut short.

info Info

The step's info.

Returns

IEnumerable<double>

One point per plot; more or fewer raises Python's zip(strict=True) error after the points it could pair.

Extension Methods