Table of Contents

Class EpisodeResult<T>

Namespace
AiDotNet.Interfaces
Assembly
AiDotNet.dll

Result of running a single RL episode.

public record EpisodeResult<T> : IEquatable<EpisodeResult<T>>

Type Parameters

T

The numeric type used for calculations.

Inheritance
EpisodeResult<T>
Implements
Inherited Members

Remarks

For Beginners: This contains statistics about one complete episode:

  • How much total reward the agent earned
  • How many steps it took
  • Whether it succeeded (depends on environment definition)

Constructors

EpisodeResult(int, T, int, bool, bool, TimeSpan)

Result of running a single RL episode.

public EpisodeResult(int EpisodeNumber, T TotalReward, int Steps, bool Completed, bool Success, TimeSpan Duration)

Parameters

EpisodeNumber int
TotalReward T
Steps int
Completed bool
Success bool
Duration TimeSpan

Remarks

For Beginners: This contains statistics about one complete episode:

  • How much total reward the agent earned
  • How many steps it took
  • Whether it succeeded (depends on environment definition)

Properties

Completed

public bool Completed { get; init; }

Property Value

bool

Duration

public TimeSpan Duration { get; init; }

Property Value

TimeSpan

EpisodeNumber

public int EpisodeNumber { get; init; }

Property Value

int

Steps

public int Steps { get; init; }

Property Value

int

Success

public bool Success { get; init; }

Property Value

bool

TotalReward

public T TotalReward { get; init; }

Property Value

T

Truncated

Gets whether the episode ended due to reaching max steps (truncated).

public bool Truncated { get; }

Property Value

bool