DifficultyEstimatorBase<T, TInput, TOutput>

Base Classes · AiDotNet.CurriculumLearning.DifficultyEstimators

Base class for difficulty estimators.

Implements: IDifficultyEstimator<T, TInput, TOutput>

Known derived types: ComplexityBasedDifficultyEstimator<T, TInput, TOutput>, ConfidenceBasedDifficultyEstimator<T, TInput, TOutput>, EnsembleDifficultyEstimator<T, TInput, TOutput>, ExpertDefinedDifficultyEstimator<T, TInput, TOutput>, LossBasedDifficultyEstimator<T, TInput, TOutput>, TransferBasedDifficultyEstimator<T, TInput, TOutput>

For Beginners

This base class provides common functionality for all difficulty estimators. It handles the mechanics of computing difficulty scores and sorting samples by difficulty.

Properties

Property Summary
bool CacheScores { get; set; } Gets or sets whether to cache difficulty scores.
bool RequiresModel { get; } Gets whether this estimator requires the model to estimate difficulty.
string Name { get; } Gets the name of the difficulty estimator.

Methods

Method Summary
T EstimateDifficulty(TInput input, TOutput expectedOutput, IFullModel<T, TInput, TOutput> model) Estimates the difficulty of a single sample.
Vector<T> EstimateDifficulties(IDataset<T, TInput, TOutput> dataset, IFullModel<T, TInput, TOutput> model) Estimates difficulty scores for all samples in a dataset.
int[] GetSortedIndices(Vector<T> difficulties) Gets the indices of samples sorted by difficulty (easy to hard).
void Reset() Resets the estimator to its initial state.
void Update(int epoch, IFullModel<T, TInput, TOutput> model) Updates the difficulty estimator based on training progress.