Hi
I’m working through chapter 9 on Time-Series and in it we import statsmodels.tsa.api as tsa. Later on, we user tsa.ARMA to for model creation. However, this no longer appears to be available in later versions of statsmodels.
An example is Cell 12 of the 02_arima_models notebook.
I’ve tried adapting it to use model = sm.tsa.SARIMAX(endog=train_set, order=(p, 0 ,q)).fit() as suggested by a user on the MLTrading subreddit, but I get a “ValueError: array length 0 does not match index length 228” Traceback at the following line:
result = (pd.DataFrame({‘y_true’: y_true, ‘y_pred’: y_pred})
.replace(np.inf, np.nan)
.dropna())
Are there any plans to update the workbooks to later libraries?