Matej
08/15/2023, 2:26 PMsf.fit(df = Y_df)
For instance, currently the MSTL with AutoArima is not picking up any exogenous regressors. If the prediction window is only the next step clearly the AR MA lags dominate but my objective is e.g. 48 hours ahead and there the covariates might prove beneficial.
How can I do this using statsforecast package ?
Also is there some summary of fitted model similar to statsmodels? : ) Thanks so muchKevin Kho
08/15/2023, 6:04 PMsf.fitted_[0][0].model_
Mariana Menchero
08/15/2023, 9:54 PMcrossvalidation_df = sf.cross_validation(
df = df,
h = 48,
step_size = 48,
n_windows = 3
)
With this, you are fitting a MSTL model using all the information up to the cutoff date. If you want to fit the whole historical data, just change the number of windows to include all possible values.
If this is not what you need/want, please elaborate so we can help you with that.Matej
08/16/2023, 12:37 PMsf.fitted_[0][0].model_
for MSTL this only returns the components:
data trend seasonal remainder
...
I assume I have to calculate the summary such as likelihood and R^2 by myself out of these numbers or out of
insample_forecasts = sf.forecast_fitted_values()
Sorry for asking dumb questions, some things are not obvious from the documentation.Brian Head
09/13/2023, 8:48 PM