Class TimeAwareObservationOptions
The keyword arguments of TimeAwareObservation<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 TimeAwareObservationOptions : IGymOptions, IEquatable<TimeAwareObservationOptions>
- Inheritance
-
TimeAwareObservationOptions
- Implements
- Inherited Members
- Extension Methods
Properties
DictTimeKey
The time's key in a Dict observation.
The dict_time_key keyword argument, passed on only once set.
public string DictTimeKey { get; init; }
Property Value
Flatten
Whether the observation and the time are flattened into one array (Gymnasium's default).
The flatten keyword argument, passed on only once set.
public bool Flatten { get; init; }
Property Value
NormalizeTime
Whether the time is the fraction of the limit elapsed (float32) instead of the step count (int32).
The normalize_time keyword argument, passed on only once set.
public bool NormalizeTime { get; init; }
Property Value
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.