NotImplementedError: statsmodels.tsa.arima_model.ARMA and statsmodels.tsa.arima_model.ARIMA have been removed in favor of statsmodels.tsa.arima.model.ARIMA (note the . between arima and model) and statsmodels.tsa.SARIMAX. statsmodels.tsa.arima.model.ARIMA makes use of the statespace framework and is both well tested and maintained. It also offers alternative specialized parameter estimators.
时间: 2023-10-08 13:09:27 浏览: 28
这个错误发生是因为在新版的 statsmodels 库中,ARMA 和 ARIMA 模型已经被移除,而使用新的 ARIMA 模型需要使用 `statsmodels.tsa.arima.model.ARIMA` 而不是 `statsmodels.tsa.arima_model.ARIMA`。同时,也推荐使用 `statsmodels.tsa.SARIMAX` 进行建模。新的 ARIMA 模型使用了状态空间框架,并且经过了充分的测试和维护,同时还提供了专业的参数估计器。您可以尝试更新您的代码,并使用新的 ARIMA 模型进行建模。
相关问题
NotImplementedError: statsmodels.tsa.arima_model.ARMA and statsmodels.tsa.arima_model.ARIMA have been removed in favor of statsmodels.tsa.arima.model.ARIMA (note the . between arima and model) and statsmodels.tsa.SARIMAX.
这个错误提示是因为 `statsmodels` 库在新版(0.12.0)中更新了 ARIMA 模型的实现方式,将原来的 `statsmodels.tsa.arima_model.ARMA` 和 `statsmodels.tsa.arima_model.ARIMA` 移除,改为使用 `statsmodels.tsa.arima.model.ARIMA` 和 `statsmodels.tsa.SARIMAX`。
如果你之前使用的是 `statsmodels.tsa.arima_model.ARIMA`,那么可以尝试将其替换为 `statsmodels.tsa.arima.model.ARIMA`。如果你使用的是其他库或者代码,可能需要查看其文档或者代码实现,看是否需要更新以适应新的 `statsmodels` 版本。
notimplementederror: statsmodels.tsa.arima_model.arma and statsmodels.tsa.arima_model.arima have been removed in favor of statsmodels.tsa.arima.model.arima (note the . between arima and model) and statsmodels.tsa.sarimax.
statsmodels.tsa.arima_model.arma和statsmodels.tsa.arima_model.arima已被删除,改为使用statsmodels.tsa.arima.model.arima(注意arima和model之间的点)和statsmodels.tsa.sarimax。
相关推荐
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)