DataLoaderCheckpoint

Models & Types · AiDotNet.Interfaces

Serializable checkpoint for a stateful data loader.

How It Works

Contains all information needed to resume data iteration from an exact position, including the current index, epoch, shuffle order, and RNG state.

Constructors

Constructor Summary
DataLoaderCheckpoint()

Properties

Property Summary
DateTime CreatedAtUtc { get; set; } UTC timestamp when the checkpoint was created.
Dictionary<string, string> Metadata { get; set; } Optional metadata for custom state information.
int BatchSize { get; set; } The batch size at checkpoint time.
int CurrentBatchIndex { get; set; } The current batch index within the epoch.
int CurrentIndex { get; set; } The current sample index within the epoch.
int Epoch { get; set; } The current epoch number.
int TotalCount { get; set; } The total number of samples in the dataset at checkpoint time.
int? RandomSeed { get; set; } The random seed used to generate the current shuffle order.
int[] ShuffledIndices { get; set; } The shuffled indices for the current epoch, preserving iteration order.