最佳答案
为了显示速度,tqdm
使用指数移动平均平滑。来自 documentation :
smoothing: float, optional
Exponential moving average smoothing factor for speed estimates (ignored in GUI mode). Ranges from 0 (average speed) to 1 (current/instantaneous speed) [default: 0.3].
因此,您可以说它是两者的混合。正如您在上面所读到的,如果您想查看当前或平均速度,您可以选择其中之一(通过设置 0/1 值),但我认为默认比率就可以了。
关于python - tqdm显示的 'speed'是瞬时速度还是平均速度?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66655149/