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-06-25 14:01:50 浏览: 226
这个错误是由于 `statsmodels` 的版本更新导致的,旧版本中的 `statsmodels.tsa.arima_model.ARMA` 和 `statsmodels.tsa.arima_model.ARIMA` 已被删除,现在使用 `statsmodels.tsa.arima.model.ARIMA` 和 `statsmodels.tsa.SARIMAX` 代替。`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` 库在新版(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。