delu.ProgressTracker.__init__#
- ProgressTracker.__init__(patience, min_delta=0.0)[source]#
Initialize self.
- Parameters:
patience (int | None) – Allowed number of unsuccessfull updates. For example, if patience is 2, then 2 unsuccessfull updates in a row is not a fail, but 3 unsuccessfull updates in a row is a fail.
None
means “infinite patience” and the progress tracker is never in the “fail” state.min_delta (float) – the minimal improvement over the current best score to count it as success.
- Return type:
None
Examples
progress = delu.ProgressTracker(2) progress = delu.ProgressTracker(3, 0.1)