CurriculumSchedulerBase<T>
Base Classes · AiDotNet.CurriculumLearning.Schedulers
Abstract base class for curriculum schedulers providing common functionality.
Implements: ICurriculumScheduler<T>
Known derived types: CompetenceBasedScheduler<T>, CosineScheduler<T>, ExponentialScheduler<T>, LinearScheduler<T>, PolynomialScheduler<T>, SelfPacedScheduler<T>, StepScheduler<T>
For Beginners
A curriculum scheduler determines how the training curriculum progresses over time. It controls when and how many samples are included in training as the model advances through the curriculum.
How It Works
Core Responsibilities:
Common Scheduler Types:
Properties
| Property | Summary |
|---|---|
T CurrentPhase { get; } |
Gets the current phase as a value between 0 and 1. |
bool IsComplete { get; } |
Gets whether the curriculum has completed (all samples available). |
int CurrentEpoch { get; set; } |
Gets the current epoch number. |
int CurrentPhaseNumber { get; } |
Gets the current phase number (0-indexed). |
int TotalPhases { get; } |
Gets the total number of phases in the curriculum. |
string Name { get; } |
Gets the name of this scheduler. |
Methods
| Method | Summary |
|---|---|
Dictionary<string, object> GetStatistics() |
Gets scheduler-specific statistics. |
T GetDataFraction() |
Gets the data fraction available at the current phase. |
T GetDifficultyThreshold() |
Gets the difficulty threshold for the current phase. |
bool AdvancePhase() |
Advances to the next phase. |
bool StepEpoch(CurriculumEpochMetrics<T> epochMetrics) |
Updates the scheduler after an epoch. |
int[] GetCurrentIndices(int[] sortedIndices, int totalSamples) |
Gets the indices of samples available at the current phase. |
int[] GetIndicesAtPhase(int[] sortedIndices, int totalSamples, T phase) |
Gets the indices of samples available at a specific phase. |
void Reset() |
Resets the scheduler to the initial phase. |