-
Notifications
You must be signed in to change notification settings - Fork 249
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
Compute residuals #58
Comments
Hi @asinig. The from statsforecast.arima import auto_arima_f
from statsforecast.utils import AirPassengers
mod = auto_arima_f(AirPassengers, period=12)
mod['residuals'][:5]
# array([0.06466322, 0.03356584, 0.03380615, 0.02255185, 0.01075387]) Let us know if this helps. |
@all-contributors please add @asinig for idea |
I've put up a pull request to add @asinig! 🎉 |
@jmoralez Thank you for the example and I apologize for the delay in responding. I'm struggling a bit to fully understand how it works, since most of the library implementation is not commented. I saw that Let me know please, thank you again |
Hi @asinig. Sorry, I agree we have to work on the documentation. What
So it is from statsforecast.arima import arima_string, auto_arima_f
from statsforecast.utils import AirPassengers
mod = auto_arima_f(AirPassengers, period=12)
mod['arma']
# (1, 0, 0, 0, 12, 1, 1)
arima_string(mod)
# 'ARIMA(1,1,0)(0,1,0)[12]' |
this is clearer, thank you! @jmoralez |
I'm currently trying to perform some forecastings on a set of daily time series and I was wondering whether is there a way to get the predictions on the training data, that are used to compute the residuals (difference between actual and predictions in the train). In
StatsForecast
class there is no possibility for doing that. I'm mainly interested to obtain them withauto_arima
approach, but it could be extended also for the remaining approaches.Is it possible to add a method or attribute to get them?
Thank you
The text was updated successfully, but these errors were encountered: