当前位置: 首页 > 工具软件 > statsmodels > 使用案例 >

成功解决Not Implemented Error: statsmodels.tsa.arima_model. ARMA and statsmodels.tsa.arima_model. ARIMA

钱哲茂
2023-12-01

成功解决Not Implemented Error: 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.

目录

解决问题

解决思路

解决方法


解决问题

Not Implemented Error: 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.

解决思路

未实施错误:statsmodels.tsa.arima_model. ARMA 和 statsmodels.tsa.arima_model. ARIMA 已被移除,取而代之的是 statsmodels.tsa.arima.model.ARIMA(注意 arima 和模型之间的 .)和 statsmodels.tsa.SARIMAX. statsmodels.tsa.arima.model.ARIMA 使用状态空间框架,并且经过良好测试和维护. 它还提供替代的专用参数估计器.

解决方法

from statsmodels.tsa.arima_model import ARIMA

改为

from statsmodels.tsa.arima.model import ARIMA

 类似资料: