Table of Contents

Class MountainCarEnvOptions

Namespace
Gym.Environments.Envs.Classic
Assembly
Gym.Environments.dll

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

Properties

Continuous

Gym.NET's continuous (DR-32): MountainCarContinuous-v0's force-in-[-1, 1] dynamics, flag at 0.45 and reward instead of MountainCar-v0's. The continuous keyword argument, passed on only once set.

public bool Continuous { get; init; }

Property Value

bool

GoalVelocity

Gymnasium's goal_velocity: the velocity the car must have at the flag (0 by default). The goal_velocity keyword argument, passed on only once set.

public double GoalVelocity { get; init; }

Property Value

double

RenderMode

Gymnasium's render_mode: null, "human" or "rgb_array"; not validated, as in Gymnasium (make checks it against the metadata). 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.