Skip to content

Instantly share code, notes, and snippets.

@dpbac
Created June 23, 2021 11:35
Show Gist options
  • Save dpbac/83d035c6e38fd169c72f9f9dcc3623a4 to your computer and use it in GitHub Desktop.
Save dpbac/83d035c6e38fd169c72f9f9dcc3623a4 to your computer and use it in GitHub Desktop.
arima_model = SARIMAX(df_store_2_item_28_time, order=(4,1,5))
# fit model
arima_results = arima_model.fit()
# Calculate the mean absolute error from residuals
mae = np.mean(np.abs(arima_results.resid))
# Print mean absolute error
print('MAE: %.3f' % mae)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment