Table of Contents

Class ToyTextInfo

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

The base of the toy_text envs' typed info records (DR-91, DR-95): the transition's probability, prob, which FrozenLake, CliffWalking and Taxi send on every reset and step, as their transition tables give it (P[s][a] = [(prob, next, reward, terminated)]). Blackjack sends {} and has no record.

public abstract record ToyTextInfo : EnvInfo, IEquatable<EnvInfo>, IEquatable<ToyTextInfo>
Inheritance
ToyTextInfo
Implements
Derived
Inherited Members
Extension Methods

Remarks

The keys are Gymnasium v1.4.0's, measured on every toy_text id (a reset with seed 0, then 300 random steps); every key comes on every reset and step, so no member is nullable.

Constructors

ToyTextInfo(double)

The base of the toy_text envs' typed info records (DR-91, DR-95): the transition's probability, prob, which FrozenLake, CliffWalking and Taxi send on every reset and step, as their transition tables give it (P[s][a] = [(prob, next, reward, terminated)]). Blackjack sends {} and has no record.

protected ToyTextInfo(double Prob)

Parameters

Prob double

The probability of the transition just taken (prob): 1 at a reset (a Python int there), and the table's probability after a step (1.0 on a deterministic map, 1/3 or the success rate on a slippery one); read as a double.

Remarks

The keys are Gymnasium v1.4.0's, measured on every toy_text id (a reset with seed 0, then 300 random steps); every key comes on every reset and step, so no member is nullable.

Properties

Prob

The probability of the transition just taken (prob): 1 at a reset (a Python int there), and the table's probability after a step (1.0 on a deterministic map, 1/3 or the success rate on a slippery one); read as a double.

public double Prob { get; init; }

Property Value

double