Last active
August 12, 2022 16:04
-
-
Save liannewriting/5635aacf9c7a46e0ea51bb78b6d7e628 to your computer and use it in GitHub Desktop.
time series prediction arima model python
This file contains 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
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