Table of Contents

Class CliffWalkingEnvOptions

Namespace
Gym.Environments.Envs.ToyText
Assembly
Gym.Environments.dll

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

Properties

IsSlippery

Gymnasium's is_slippery: each move goes as intended or to either side, with probability 1/3 each. The is_slippery keyword argument, passed on only once set.

public bool IsSlippery { get; init; }

Property Value

bool

RenderMode

Gymnasium's render_mode: null, "human", "rgb_array" or "ansi". The render_mode keyword argument, passed on only once set.

public string? RenderMode { get; init; }

Property Value

string

ViewerFactory

Gym.NET's viewer_factory (DR-20) for human mode; null uses Gymnasium.HumanViewerFactory. The viewer_factory keyword argument, passed on only once set.

public EnvViewerFactory? ViewerFactory { get; init; }

Property Value

EnvViewerFactory

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.