Table of Contents

Class RecordEpisodeStatisticsOptions

Namespace
Gym.Wrappers
Assembly
Gym.dll

The keyword arguments of RecordEpisodeStatistics<TObs, TAct>'s constructor as a typed record (DR-34), generated from the constructor so it cannot drift from it. A property that is set becomes a keyword argument by its Python name; one left unset is not passed, so make keeps the registered spec's value and the constructor its default.

public sealed record RecordEpisodeStatisticsOptions : IGymOptions, IEquatable<RecordEpisodeStatisticsOptions>
Inheritance
RecordEpisodeStatisticsOptions
Implements
Inherited Members
Extension Methods

Properties

BufferLength

How many episodes the queues keep (Python's deque(maxlen=buffer_length)). The buffer_length keyword argument, passed on only once set.

public int BufferLength { get; init; }

Property Value

int

StatsKey

The info key for the statistics. The stats_key keyword argument, passed on only once set.

public string StatsKey { get; init; }

Property Value

string

Methods

ToKwargs()

The set properties as keyword arguments by Python name, in constructor order.

public Info ToKwargs()

Returns

Info

A new dict the caller owns.