EnsembleDifficultyEstimator<T, TInput, TOutput>

Models & Types ยท AiDotNet.CurriculumLearning.DifficultyEstimators

Difficulty estimator that combines multiple estimators for robust difficulty estimation.

Inheritance: DifficultyEstimatorBase<T, TInput, TOutput> โ†’ EnsembleDifficultyEstimator<T, TInput, TOutput>

Implements: IEnsembleDifficultyEstimator<T, TInput, TOutput>

For Beginners

This estimator combines multiple difficulty estimators into a single, more robust estimate. Different estimators may capture different aspects of difficulty, and combining them can provide a more comprehensive view.

How It Works

Combination Strategies:

Benefits:

Constructors

Constructor Summary
EnsembleDifficultyEstimator(EnsembleCombinationMethod combinationMethod, bool normalize) Initializes a new instance of the EnsembleDifficultyEstimator class.
EnsembleDifficultyEstimator(IEnumerable<IDifficultyEstimator<T, TInput, TOutput>> estimators, IEnumerable<T> weights, EnsembleCombinationMethod combinationMethod, bool normalize) Initializes a new instance with predefined estimators.

Properties

Property Summary
IReadOnlyList<IDifficultyEstimator<T, TInput, TOutput>> Estimators { get; } Gets the individual estimators in this ensemble.
Vector<T> Weights { get; set; } Gets or sets the weights for each estimator.
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 using all estimators.
Vector<T> EstimateDifficulties(IDataset<T, TInput, TOutput> dataset, IFullModel<T, TInput, TOutput> model) Estimates difficulty scores for all samples.
void AddEstimator(IDifficultyEstimator<T, TInput, TOutput> estimator, T weight) Adds an estimator to the ensemble.
void RemoveEstimator(int index) Removes an estimator from the ensemble.
void Reset() Resets all estimators in the ensemble.
void Update(int epoch, IFullModel<T, TInput, TOutput> model) Updates all estimators in the ensemble.