UncertaintySampling<T>
Models & Types · AiDotNet.ActiveLearning
Implements uncertainty sampling for active learning.
Implements: IActiveLearningStrategy<T>
For Beginners
Uncertainty sampling is one of the simplest and most popular active learning strategies. It selects samples where the model is least confident about its predictions. The intuition is that uncertain samples are near the decision boundary and provide the most information for learning.
How It Works
Uncertainty measures:
Reference: Lewis and Gale, “A Sequential Algorithm for Training Text Classifiers” (1994).
Constructors
| Constructor | Summary |
|---|---|
UncertaintySampling(UncertaintyMeasure<T> measure) |
Initializes a new instance of the UncertaintySampling class. |
Properties
| Property | Summary |
|---|---|
bool UseBatchDiversity { get; set; } |
|
string Name { get; } |
Methods
| Method | Summary |
|---|---|
Dictionary<string, T> GetSelectionStatistics() |
|
Vector<T> ComputeInformativenessScores(IFullModel<T, Tensor<T>, Tensor<T>> model, Tensor<T> unlabeledPool) |
|
int[] SelectSamples(IFullModel<T, Tensor<T>, Tensor<T>> model, Tensor<T> unlabeledPool, int batchSize) |