Python scikit hts包中的Prophet模型不工作

Python scikit hts包中的Prophet模型不工作,python,machine-learning,scikit-learn,time-series,forecasting,Python,Machine Learning,Scikit Learn,Time Series,Forecasting,我正在用python探索时间序列的分层预测,并偶然发现了这个库。我使用pip-install-scikit-hts安装了该软件包。我遵循了教程中提到的步骤。我创建了层次树,并来到了建模部分。我想用Facebook prophet算法预测底层预测。我运行了以下代码 clf = hts.HTSRegressor(model='prophet', revision_method='AHP', n_jobs=0) model = clf.fit(hierarchy_train, hierarchy)

我正在用python探索时间序列的分层预测,并偶然发现了这个库。我使用
pip-install-scikit-hts
安装了该软件包。我遵循了教程中提到的步骤。我创建了层次树,并来到了建模部分。我想用Facebook prophet算法预测底层预测。我运行了以下代码

clf = hts.HTSRegressor(model='prophet', revision_method='AHP', n_jobs=0)
model = clf.fit(hierarchy_train, hierarchy)
这引发了警告信息

Fitting models:   0%|          | 0/46 [00:00<?, ?it/s]prophet model requires fbprophet to 
work. Exiting.Install it with: pip install scikit-hts[prophet]
Fitting models:   0%|          | 0/46 [00:00<?, ?it/s]
我试图安装来自的每个附加软件包。但它会为每个包抛出以下错误消息(此处仅针对arima模型显示)

有人能解释一下为什么会这样吗?是因为软件包已停止使用,还是我的安装过程中存在问题

编辑:

  • 我已经更新了我的scikit hts版本,但仍然
    pip安装scikit hts[x]
    (其中
    x=all/geo/arima/prophet
    )不起作用

  • 我在jupyter笔记本上运行了我的代码。除了prophet,所有的模型都能工作。这是代码

    clf = hts.HTSRegressor(model='x', revision_method='OLS', n_jobs=20)
    model = clf.fit(hierarchy_train, hierarchy)
    
  • 该代码运行于x=
    auto_arima
    holt_winters
    sarimax
    ,但不运行于
    prophet
    当我尝试
    prophet

    AttributeError: 'NoneType' object has no attribute 'fit'
    
    为什么模型没有为prophet运行

    • 我不知道它是否相关,但我已经为arima和其他平滑模型安装了statsmodels包。我已经在我的系统上安装了fb prophet,但我没有在笔记本中导入。我只做了
      导入hts

    我刚刚尝试使用相同的参数。它没有任何错误。可能他们已经在0.5.4的更高版本中修复了此问题。升级包后,请尝试检查一次。如果到目前为止您还没有这样做。

    我已经更新到最新版本的scikit hts,V0.5.6。当我尝试安装其他依赖项时,如
    pip install scikit hts[prophet]
    pip install scikit hts[all]
    等。所有这些依赖项都抛出相同的错误
    未找到匹配项:scikit hts[all]
    。您能告诉我您是如何安装其他依赖项的吗?我已经使用
    pip-install-scikit-hts[all]
    安装了其他依赖项,它也起到了作用。因此,请尝试卸载与scikit hts相关的所有内容,然后使用
    pip install scikit hts
    pip install scikit hts[all]
    重新安装,或者在新环境中尝试相同的命令。Hi。我添加了一些编辑。您是否可以检查一下,您没有导入prophet,
    import hts
    就足够了。您是否使用过
    pip install prophet
    pip install fbprophet
    。使用
    pip install fbprophet
    clf = hts.HTSRegressor(model='x', revision_method='OLS', n_jobs=20)
    model = clf.fit(hierarchy_train, hierarchy)
    
    AttributeError: 'NoneType' object has no attribute 'fit'