Table of Contents

Class ObstructViewOptions

Namespace
Gym.Wrappers
Assembly
Gym.dll

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

Properties

IsNoiseGrayscale

Whether the noise is gray rather than colored. The is_noise_grayscale keyword argument, passed on only once set.

public bool IsNoiseGrayscale { get; init; }

Property Value

bool

ObstructedPixelsRatio

The share of pixels to cover, in [0, 1). The obstructed_pixels_ratio keyword argument, passed on only once set.

public double ObstructedPixelsRatio { get; init; }

Property Value

double

ObstructionWidth

The side of each square patch, at least 1. The obstruction_width keyword argument, passed on only once set.

public long ObstructionWidth { 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.