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
TThe 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
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
Duration
public TimeSpan Duration { get; init; }
Property Value
EpisodeNumber
public int EpisodeNumber { get; init; }
Property Value
Steps
public int Steps { get; init; }
Property Value
Success
public bool Success { get; init; }
Property Value
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; }