ICurriculumScheduler<T>

Interfaces · AiDotNet.CurriculumLearning.Interfaces

Interface for curriculum schedulers that control training progression.

Known implementations: CurriculumSchedulerBase<T>, ICompetenceBasedScheduler<T>, ISelfPacedScheduler<T>

For Beginners

A curriculum scheduler decides when and how to introduce harder training samples. Think of it like a teacher who decides when students are ready to move from addition to multiplication.

How It Works

Common Scheduling Strategies:

Key Concepts:

Properties

Property Summary
T CurrentPhase { get; } Gets the current phase (0 to 1).
bool IsComplete { get; } Gets whether the curriculum is complete (all samples available).
int CurrentEpoch { get; } 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 the scheduler.

Methods

Method Summary
Dictionary<string, object> GetStatistics() Gets statistics about the scheduler’s current state.
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.