Table of Contents

Class FrameStackObservationOptions

Namespace
Gym.Wrappers
Assembly
Gym.dll

The keyword arguments of FrameStackObservation<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 FrameStackObservationOptions : IGymOptions, IEquatable<FrameStackObservationOptions>
Inheritance
FrameStackObservationOptions
Implements
Inherited Members
Extension Methods

Properties

PaddingType

"reset" (null, the default: pad with each episode's first observation), "zero" (pad with the space's zero), or an element of the env's observation space to pad with, which stays the caller's. The padding_type keyword argument, passed on only once set.

public object? PaddingType { get; init; }

Property Value

object

StackSize

The number of observations stacked; positive. The stack_size keyword argument, passed on only once set.

public long StackSize { get; init; }

Property Value

long

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.