Stopping Criteria (Implementation)#
alts.modules.stopping_criteria
- class DataExhaustedStoppingCriteria[source]#
Bases:
StoppingCriteriaDescriptionStops the experiment if the DataSource has been exhausted.- property next: bool#
- DescriptionChecks whether the experiment should stop.
- Returns:
True if the experiment’s DataSource has been exhausted (else False)
- Return type:
bool
- class TimeStoppingCriteria(stop_time)[source]#
Bases:
StoppingCriteriaDescriptionThis stopping criteria is fulfilled if the internal experiment time exceeds a givenstop_time.- Parameters:
stop_time (float) – The stopping time
- property next: bool#
- DescriptionChecks whether the experiment should stop.
- Returns:
True if experiment time has reached or exceeded stopping time (else False)
- Return type:
bool
- stop_time: float = NOTSET#