Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use MASE by default for PyAF Model Selection #229

Closed
antoinecarme opened this issue Mar 13, 2023 · 9 comments
Closed

Use MASE by default for PyAF Model Selection #229

antoinecarme opened this issue Mar 13, 2023 · 9 comments

Comments

@antoinecarme
Copy link
Owner

antoinecarme commented Mar 13, 2023

When the signal contains zeros, the MAPE values are not defined. MAPE is simply not suitable for such signals ans this can lead to low quality models.

https://stackoverflow.com/questions/41571215/forecasr-accuracy-mape-and-zero-values

https://otexts.com/fpp3/accuracy.html

There is no technical work-around for better using MAPE.

MAPE is not suitable for reporting performance measure values when zeros in the signal, but it is very user-friendly and easy to understand..

The only solution is to use a scaled measure like MASE for model selection by default.

Some benchmarking is needed (#222 ).

It would be nice to have this in PyAF 5.0 (expected on 2023-07-14). So far, so good. DONE.

@antoinecarme
Copy link
Owner Author

antoinecarme commented Mar 13, 2023

https://otexts.com/fpp3/accuracy.html

https://www.sciencedirect.com/science/article/abs/pii/S0169207006000239?via%3Dihub

Another look at measures of forecast accuracy
Author: Rob J. Hyndman, Anne B. Koehler
Publication: International Journal of Forecasting
Publisher: Elsevier
Date: October–December 2006

image

@antoinecarme
Copy link
Owner Author

Also add the same scaling for RMSE, the RMSSE as a new performance measure :

https://otexts.com/fpp3/accuracy.html

image

@antoinecarme antoinecarme self-assigned this Mar 13, 2023
antoinecarme added a commit that referenced this issue Mar 13, 2023
…sures computations. Allow caching some intermediate results. Added RMSSE.
antoinecarme added a commit that referenced this issue Mar 13, 2023
antoinecarme added a commit that referenced this issue Mar 13, 2023
antoinecarme added a commit that referenced this issue Mar 13, 2023
…et. Model Not OK with MAPE, performs much better with MASE, RMSE., RMSSE
antoinecarme added a commit that referenced this issue Mar 13, 2023
…et. Model Not OK with MAPE, performs much better with MASE, RMSE., RMSSE
antoinecarme added a commit that referenced this issue Mar 13, 2023
…et. Model Not OK with MAPE, performs much better with MASE, RMSE, RMSSE. Updated Makefile
antoinecarme added a commit that referenced this issue Mar 13, 2023
…et. Model Not OK with MAPE, performs much better with MASE, RMSE, RMSSE. Added new references.
@antoinecarme
Copy link
Owner Author

antoinecarme commented Mar 13, 2023

Origin : user model on google colab (#PyAF hashtag rocks ;).

https://colab.research.google.com/drive/1zaVQuobR8M63qB-UDDX8ZX37ctl98YIT?usp=sharing

@antoinecarme
Copy link
Owner Author

Original Model (MAPE)

image

@antoinecarme
Copy link
Owner Author

Same Model with MASE

image

@antoinecarme
Copy link
Owner Author

Same Model with RMSE (L2)

image

@antoinecarme
Copy link
Owner Author

Same Model with RMSSE (scaled RMSE)

image

@antoinecarme
Copy link
Owner Author

The prediction intervals plots now gives the values of MAPE and MASE for horizon 1 and horizon H by default.

image

@antoinecarme
Copy link
Owner Author

CLOSING. Added to 5.0

antoinecarme added a commit that referenced this issue Mar 18, 2023
antoinecarme added a commit that referenced this issue Mar 18, 2023
antoinecarme added a commit that referenced this issue Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant