QueryQualityCriterion<T>
Models & Types · AiDotNet.ActiveLearning.StoppingCriteria
Stopping criterion based on quality of remaining query candidates.
Implements: IStoppingCriterion<T>
For Beginners
This criterion stops learning when the informativeness scores of the best remaining samples fall below a threshold. If no informative samples remain, there’s little benefit to continuing.
How It Works
How It Works:
Intuition: Early in active learning, the query strategy finds highly informative samples. As learning progresses, the most informative samples get labeled, and remaining samples become less valuable.
Key Parameters:
Constructors
| Constructor | Summary |
|---|---|
QueryQualityCriterion() |
Initializes a new QueryQuality criterion with default parameters. |
QueryQualityCriterion(double threshold, bool useRelativeThreshold) |
Initializes a new QueryQuality criterion with specified parameters. |
Properties
| Property | Summary |
|---|---|
T CurrentMaxScore { get; } |
Gets the current maximum query score. |
T InitialMaxScore { get; } |
Gets the initial maximum query score (for relative mode). |
string Description { get; } |
|
string Name { get; } |
Methods
| Method | Summary |
|---|---|
T GetProgress(ActiveLearningContext<T> context) |
|
bool ShouldStop(ActiveLearningContext<T> context) |
|
void Reset() |