TimeBudgetCriterion<T>
Models & Types · AiDotNet.ActiveLearning.StoppingCriteria
Stopping criterion based on time budget exhaustion.
Implements: IStoppingCriterion<T>
For Beginners
This criterion stops learning when the total time spent on active learning exceeds a specified budget. Useful when you have time constraints on annotation or training.
How It Works
When to Use:
Considerations:
Constructors
| Constructor | Summary |
|---|---|
TimeBudgetCriterion() |
Initializes a new TimeBudget criterion with a 1-hour default. |
TimeBudgetCriterion(TimeSpan maxTime) |
Initializes a new TimeBudget criterion with specified time limit. |
Properties
| Property | Summary |
|---|---|
TimeSpan MaxTime { get; } |
Gets the maximum allowed time. |
string Description { get; } |
|
string Name { get; } |
Methods
| Method | Summary |
|---|---|
T GetProgress(ActiveLearningContext<T> context) |
|
bool ShouldStop(ActiveLearningContext<T> context) |
|
void Reset() |