Table of Contents

Class TaxiEnvOptions

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

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

Properties

FicklePassenger

Gymnasium's fickle_passenger: the passenger may change their destination after the first move with them aboard. The fickle_passenger keyword argument, passed on only once set.

public bool FicklePassenger { get; init; }

Property Value

bool

FickleProbability

Gymnasium's fickle_probability, 0.3 by default: the chance, drawn at each reset, that the passenger is fickle this episode. The fickle_probability keyword argument, passed on only once set.

public double FickleProbability { get; init; }

Property Value

double

IsRainy

Gymnasium's is_rainy: a move goes as intended with RainyProbability, else to either side. The is_rainy keyword argument, passed on only once set.

public bool IsRainy { get; init; }

Property Value

bool

RainyProbability

Gymnasium's rainy_probability, 0.8 by default. The rainy_probability keyword argument, passed on only once set.

public double RainyProbability { get; init; }

Property Value

double

RenderMode

Gymnasium's render_mode: null, "human", "ansi" or "rgb_array". 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.