Python中计算移动平均值时的可逆性错误

Python中计算移动平均值时的可逆性错误,python,machine-learning,Python,Machine Learning,我在运行SARIMA模型时遇到以下错误 ValueError:计算的初始MA系数不可逆 您应该归纳可逆性,选择不同的模型顺序,或 您可以传递自己的开始参数 我的代码如下: from statsmodels.tsa.arima_model import ARIMA #AR Model model = ARIMA(ts_log,order=(3,1,3)) results_AR = model.fit(disp=-1) plt.plot(ts_log_shifted) plt.plot(result

我在运行SARIMA模型时遇到以下错误

ValueError:计算的初始MA系数不可逆
您应该归纳可逆性,选择不同的模型顺序,或 您可以传递自己的开始参数

我的代码如下:

from statsmodels.tsa.arima_model import ARIMA
#AR Model
model = ARIMA(ts_log,order=(3,1,3))
results_AR = model.fit(disp=-1)
plt.plot(ts_log_shifted)
plt.plot(results_AR.fittedvalues,color='red')
plt.title('RSS: %.4f'% sum((results_AR.fittedvalues-ts_log_shifted["PRB Utilization"])**2))
print('AR Model Plot')
有人能帮我解决我可能犯的错误吗?我现在不想使用SARIMAX