mirror of https://github.com/tqdm/tqdm.git
comments + remove self
Signed-off-by: Stephen L. <lrq3000@gmail.com>
This commit is contained in:
parent
9fc5a16434
commit
d5a8a76f06
|
@ -398,11 +398,13 @@ class tqdm(object):
|
|||
# to the maximum iteration rate seen so far.
|
||||
if dynamic_miniters and delta_t:
|
||||
if mininterval:
|
||||
# weight delta_it with ema to try to converge
|
||||
# miniters towards the timeframe of mininterval
|
||||
miniters = smoothing * delta_it * mininterval \
|
||||
/ delta_t + (1 - smoothing) * miniters
|
||||
else:
|
||||
miniters = smoothing * delta_it + \
|
||||
(1 - self.smoothing) * self.miniters
|
||||
(1 - smoothing) * miniters
|
||||
|
||||
# Store old values for next call
|
||||
last_print_n = n
|
||||
|
|
Loading…
Reference in New Issue