-
Notifications
You must be signed in to change notification settings - Fork 104
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
Components breakdown for forecast #44
Comments
Hi @vandonova, You can retrieve the components for training as follows:
Currently there is no easy way to return the components for the forecasts, but it can be computed as follows. Assumption:
Hope this helps. Have a good weekend. |
Thanks @sayanpatra this is exactly what I needed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I'm looking to break down my forecast into its components. I saw your function
plot_components
however, it only uses the train data to create the components.In my example, my training data never has values on Saturdays. In that case,
return a weekly component plot that just connects Friday and Sunday with a straight line. (Note that hovering on
![image](https://user-images.githubusercontent.com/16643414/130515103-7c0febe1-e16e-4672-ad48-c1fcc1dd7238.png)
![image](https://user-images.githubusercontent.com/16643414/130515128-84256286-7b2f-4acd-9101-20b91244ca05.png)
5
, Saturday, does not show any data).When predicting, I want to include Saturdays in my forecast and predict their value based on the fitted coefficients for
'sin1_tow_weekly', 'cos1_tow_weekly', 'sin2_tow_weekly', 'cos2_tow_weekly', 'sin3_tow_weekly', 'cos3_tow_weekly'
.Is there an easy way to retrieve the components for
predictions
? Alternatively, how would I access the design matrixx_mat
for the forecast instead of the fitted data?Thank you in advance!
Vicky
The text was updated successfully, but these errors were encountered: