Delegate PlayPlotMetrics
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
obsTobjectThe observation before the action (the reset's
(obs, info)after a reset, asplaypasses it).obsTp1objectThe observation after the action.
actionobjectThe action.
rewdoubleThe reward.
terminatedboolWhether the episode ended in a terminal state.
truncatedboolWhether the episode was cut short.
infoInfoThe 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