Skip to content

Instantly share code, notes, and snippets.

@liannewriting
Last active August 12, 2022 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liannewriting/5635aacf9c7a46e0ea51bb78b6d7e628 to your computer and use it in GitHub Desktop.
Save liannewriting/5635aacf9c7a46e0ea51bb78b6d7e628 to your computer and use it in GitHub Desktop.
time series prediction arima model python
from sklearn.metrics import mean_absolute_error, mean_absolute_percentage_error, mean_squared_error
mae = mean_absolute_error(df_test, forecast_test)
mape = mean_absolute_percentage_error(df_test, forecast_test)
rmse = np.sqrt(mean_squared_error(df_test, forecast_test))
print(f'mae - manual: {mae}')
print(f'mape - manual: {mape}')
print(f'rmse - manual: {rmse}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment