EnvironmentInfoKeys

Helpers & Utilities · AiDotNet.ReinforcementLearning.Environments

Keys of the info dictionary returned by Step.

How It Works

For Beginners: An episode can end in two ways. It terminates when the task reaches a real end state (the pole fell, the goal was reached): nothing more can be earned. It is truncated when it is cut off by a time limit while the task could have gone on: the agent should still count the value of the state it was in. Gymnasium reports these as terminated and truncated; here an environment returns Done = true for both and sets Truncated in the info dictionary for a truncation.

Methods

Method Summary
bool IsTruncated(IReadOnlyDictionary<string, object> info) Whether info reports that the step ended its episode by truncation.

Fields

Field Summary
string Truncated Info key whose Boolean value is true when the episode ended by truncation (a time limit), not by reaching a terminal state.