prophet_model.bin 错误

问题描述 投票:0回答:1

我根据Python API安装了

Prophet
这里但是当我尝试在Python API上运行相同的模型这里时:

df =  pd.read_csv('https://raw.githubusercontent.com/facebook/prophet/main/examples/example_wp_log_peyton_manning.csv')
m = Prophet()
m.fit(df)

将打开以下窗口:

Error Window

其粗略翻译是

C:Users...prophet.model_bin
,在
dynamical library(?
中找不到。

点击

Tamam
(好的)后,
Runtime Error
会升起:

RuntimeError: Error during optimization: 

此错误的可能原因之一可能是

prophet_model.bin
文件奇怪地采用了 VLC 媒体播放器格式。

prophet_model.bin

我现在没有选择,我不知道为什么我不能运行一个简单的库,我渴望获得有关如何在我的 Jupyter 笔记本上运行

prophet
的任何建议

python pandas jupyter-notebook forecasting facebook-prophet
1个回答
0
投票

要解决该问题,您可以应用以下方法:

打开cmd并输入:where.exe tbb.dll 如果下面的命令有结果,最有可能的是机器上存在一个全局变量引用tbb.dll 要解决此冲突,您有 2 个选择: 验证全局变量链接到 tbb.dll 的来源

修改 python site-packages 上 cmdstanpy 文件夹的 model.py,如下行:

原始代码

如果 platform.system() == 'Windows': 尝试: do_command(['where.exe', 'tbb.dll'], fd_out=None)

修改代码

如果 platform.system() == 'Windows': 尝试: do_command(['where.exe', 'OTHERNAMEtbb.dll'], fd_out=None)

将名称 tbb.dll 修改为其他名称以强制使用存在于cmdstanpy 文件夹中的 tbb.dll:

site-packages\prophet\stan_mode

© www.soinside.com 2019 - 2024. All rights reserved.