-
-
Save dpbac/83d035c6e38fd169c72f9f9dcc3623a4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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