RandomSampling<T>
Models & Types · AiDotNet.ActiveLearning
Implements random sampling for active learning (baseline strategy).
Implements: IActiveLearningStrategy<T>
For Beginners
Random sampling is the simplest active learning strategy. It randomly selects samples from the unlabeled pool without considering model predictions or any informativeness measure. This serves as a baseline for comparing other strategies.
How It Works
When to use:
Complexity: O(n) for selection where n is the pool size.
Reference: Standard baseline in active learning literature.
Constructors
| Constructor | Summary |
|---|---|
RandomSampling(int? seed) |
Initializes a new instance of the RandomSampling 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) |