LossBasedDifficultyEstimator<T, TInput, TOutput>

Models & Types · AiDotNet.CurriculumLearning.DifficultyEstimators

Difficulty estimator based on training loss.

Inheritance: DifficultyEstimatorBase<T, TInput, TOutput> → LossBasedDifficultyEstimator<T, TInput, TOutput>

Known derived types: SmoothedLossDifficultyEstimator<T, TInput, TOutput>

For Beginners

This estimator uses the model’s prediction loss as a measure of difficulty. Samples with high loss are considered harder because the model struggles to predict them correctly.

How It Works

How It Works:

References:

Constructors

Constructor Summary
LossBasedDifficultyEstimator(ILossFunction<T> lossFunction, bool normalize) Initializes a new instance of the LossBasedDifficultyEstimator class.

Properties

Property Summary
bool RequiresModel { get; } Gets whether this estimator requires the model.
string Name { get; } Gets the name of this estimator.

Methods

Method Summary
T EstimateDifficulty(TInput input, TOutput expectedOutput, IFullModel<T, TInput, TOutput> model) Estimates the difficulty of a single sample based on prediction loss.
Vector<T> EstimateDifficulties(IDataset<T, TInput, TOutput> dataset, IFullModel<T, TInput, TOutput> model) Estimates difficulty scores for all samples (batch optimized).