Skip to content

Instantly share code, notes, and snippets.

@dpbac
Created June 23, 2021 12:26
Show Gist options
  • Save dpbac/b8a89a05e2b7e5341cd9c2d06cfd7610 to your computer and use it in GitHub Desktop.
Save dpbac/b8a89a05e2b7e5341cd9c2d06cfd7610 to your computer and use it in GitHub Desktop.
sarima_01_model = SARIMAX(df_store_2_item_28_time, order=(0,1,6), seasonal_order=(0,1,1,7))
sarima_01_results = sarima_01_model.fit()
# Calculate the mean absolute error from residuals
mae = np.mean(np.abs(sarima_01_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