Progress
repeat_indices(indices, result, done, **kwargs)
¶
Helper function to cycle indefinitely over a collection of indices until the stopping criterion is satisfied while displaying progress.
PARAMETER | DESCRIPTION |
---|---|
indices |
Collection of indices that will be cycled until done.
TYPE:
|
result |
Object containing the current results.
TYPE:
|
done |
Stopping criterion.
TYPE:
|
kwargs |
Keyword arguments passed to tqdm.
DEFAULT:
|
Source code in src/pydvl/utils/progress.py
log_duration(func)
¶
Decorator to log execution time of a function