Table of Contents

Class RLEpisodeMetrics<T>

Namespace
AiDotNet.Configuration
Assembly
AiDotNet.dll

Metrics for a completed RL episode.

public class RLEpisodeMetrics<T>

Type Parameters

T

The numeric type.

Inheritance
RLEpisodeMetrics<T>
Inherited Members

Constructors

RLEpisodeMetrics()

Creates a new instance with default values.

public RLEpisodeMetrics()

Properties

AverageLoss

Average loss during training in this episode.

public T AverageLoss { get; init; }

Property Value

T

AverageRewardRecent

Running average reward over recent episodes (smoothed metric).

public T AverageRewardRecent { get; init; }

Property Value

T

ElapsedTime

Total time elapsed since training started.

public TimeSpan ElapsedTime { get; init; }

Property Value

TimeSpan

Episode

The episode number (1-indexed).

public int Episode { get; init; }

Property Value

int

Steps

Number of steps taken in this episode.

public int Steps { get; init; }

Property Value

int

TerminatedNaturally

Whether the episode ended naturally (vs hitting max steps).

public bool TerminatedNaturally { get; init; }

Property Value

bool

TotalReward

Total reward accumulated in this episode.

public T TotalReward { get; init; }

Property Value

T