python - tqdm显示的 'speed'是瞬时速度还是平均速度?

标签 python tqdm

正如标题所说,我想知道tqdm处理栏中显示的速度是瞬时的还是平均的? enter image description here

最佳答案

为了显示速度,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/

相关文章:

java - 通过串行发送单独的信息

python - Tkinter (python 2.7.2) 需要帮助

python - 在 Python 中限制函数执行

python - 在 docker : "ImportError: No module named tqdm" 中运行 python 代码

python - 是否有类似 TQDM 的模块用于创建递归进度条?

python - 将 tqdm 进度条与 asyncio 结合使用

python - conda 拒绝安装包,而所有依赖项似乎已经满足

python - 使用图像处理来清除小文本图像

python - 在 tqdm 中的 for 循环后更改描述

python-3.x - tqdm 以人类可读的单位显示下载