Table of Contents

Class TransformObservationOptions<TWObs, TObs>

Namespace
Gym.Wrappers
Assembly
Gym.dll

The keyword arguments of TransformObservation<TWObs, 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 TransformObservationOptions<TWObs, TObs> : IGymOptions, IEquatable<TransformObservationOptions<TWObs, TObs>>

Type Parameters

TWObs
TObs
Inheritance
TransformObservationOptions<TWObs, TObs>
Implements
Inherited Members
Extension Methods

Properties

Func

The transformation; null fails at the first observation, as Python's None does when called. The func keyword argument, passed on only once set.

public Func<TObs, TWObs> Func { get; init; }

Property Value

Func<TObs, TWObs>

ObservationSpace

The transformed observations' space, owned by the wrapper from now on; null forwards the env's. The observation_space keyword argument, passed on only once set.

public Space<TWObs>? ObservationSpace { get; init; }

Property Value

Space<TWObs>

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.