CurriculumLearnerConfig<T>

Options & Configuration · AiDotNet.CurriculumLearning

Configuration for curriculum learning training.

Implements: ICurriculumLearnerConfig<T>

For Beginners

This class holds all the settings that control how curriculum learning works. You can configure things like how many training phases to use, when to stop early if the model isn’t improving, and how to schedule the progression from easy to hard samples.

How It Works

Key Configuration Areas:

Constructors

Constructor Summary
CurriculumLearnerConfig() Initializes a new instance with default values.

Properties

Property Summary
Action<string> LogAction { get; set; } Gets the custom logging action.
CurriculumScheduleType ScheduleType { get; set; } Gets the curriculum schedule type.
CurriculumVerbosity Verbosity { get; set; } Gets the verbosity level for logging.
T EarlyStoppingMinDelta { get; set; } Gets the minimum improvement required to reset early stopping counter.
T FinalDataFraction { get; set; } Gets the final data fraction (usually 1.0 to include all samples).
T InitialDataFraction { get; set; } Gets the initial data fraction (starting fraction of easiest samples).
T LearningRate { get; set; } Gets the learning rate.
bool NormalizeDifficulties { get; set; } Gets whether to normalize difficulty scores to [0, 1].
bool RecalculateDifficulties { get; set; } Gets whether to recalculate sample difficulties during training.
bool ShuffleWithinPhase { get; set; } Gets whether to shuffle samples within each phase.
bool UseDifficultyWeighting { get; set; } Gets whether to weight sample contributions by difficulty.
bool UseEarlyStopping { get; set; } Gets whether early stopping is enabled.
int BatchSize { get; set; } Gets the batch size for training.
int DifficultyRecalculationFrequency { get; set; } Gets how often to recalculate difficulties (every N epochs).
int EarlyStoppingPatience { get; set; } Gets the number of epochs without improvement before early stopping.
int EpochsPerPhase { get; } Gets the number of epochs per phase.
int NumPhases { get; set; } Gets the number of curriculum phases.
int TotalEpochs { get; set; } Gets the total number of training epochs.
int? RandomSeed { get; set; } Gets the random seed for reproducibility.

Methods

Method Summary
CurriculumLearnerConfig<T> Clone() Creates a copy of this configuration.
CurriculumLearnerConfigBuilder<T> CreateBuilder() Creates a builder for fluent configuration.