EpisodeResult<T>

Models & Types · AiDotNet.Interfaces

Result of running a single RL episode.

Implements: IEquatable<EpisodeResult<T>>

How It Works

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

Constructor Summary
EpisodeResult(int EpisodeNumber, T TotalReward, int Steps, bool Completed, bool Success, TimeSpan Duration) Result of running a single RL episode.

Properties

Property Summary
T TotalReward { get; set; }
TimeSpan Duration { get; set; }
bool Completed { get; set; }
bool Success { get; set; }
bool Truncated { get; } Gets whether the episode ended due to reaching max steps (truncated).
int EpisodeNumber { get; set; }
int Steps { get; set; }

Methods

Method Summary
EpisodeResult<T> <Clone>$()
bool Equals(EpisodeResult<T> other)
bool Equals(object obj)
bool op_Equality(EpisodeResult<T> left, EpisodeResult<T> right)
bool op_Inequality(EpisodeResult<T> left, EpisodeResult<T> right)
int GetHashCode()
string ToString()
void Deconstruct(int EpisodeNumber, T TotalReward, int Steps, bool Completed, bool Success, TimeSpan Duration)