如何默认情况下禁用算法中出现的TQDM进度条

发布于 2025-02-07 23:25:55 字数 525 浏览 3 评论 0原文

我需要禁用默认情况下在训练神经prophet算法时出现的进度栏。 “我基本上需要隐藏这些2绿色进度栏”

示例代码要尝试:

import pandas as pd
from neuralprophet import NeuralProphet, set_log_level
set_log_level("ERROR")

data_location = "https://raw.githubusercontent.com/ourownstory/neuralprophet-data/main/datasets/"
df = pd.read_csv(data_location + "air_passengers.csv")
#df.tail(3)

m = NeuralProphet(n_lags=5, n_forecasts=3)
metrics_train = m.fit(df=df, freq="MS",progress='print')

I need to disable the progress bar that is appearing by default while training the Neuralprophet algorithm.
I basically need to hide these2 green progress bar

Sample code to try:

import pandas as pd
from neuralprophet import NeuralProphet, set_log_level
set_log_level("ERROR")

data_location = "https://raw.githubusercontent.com/ourownstory/neuralprophet-data/main/datasets/"
df = pd.read_csv(data_location + "air_passengers.csv")
#df.tail(3)

m = NeuralProphet(n_lags=5, n_forecasts=3)
metrics_train = m.fit(df=df, freq="MS",progress='print')

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文