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

Question about n_predictions #24

Closed
edf42001 opened this issue Jul 15, 2019 · 2 comments
Closed

Question about n_predictions #24

edf42001 opened this issue Jul 15, 2019 · 2 comments

Comments

@edf42001
Copy link

Hello,

I was wondering the purpose of the n_prediction config value. First, in your paper you mention that you could predict one time step ahead, or more than one. Currently, n_predictions in your config file is set to 10, and your model predicts 10 steps ahead. However, in the predict_in_batches method it looks like you ignore all those predictions except for the first one, effectivley only predicting one step ahead again.

final_y_hat.append(y_hat_t[0]) # first prediction
. I was wondering if I am understanding this right or if I am missing something.

@khundman
Copy link
Owner

Yes, your understanding is correct. The 10 predictions are generated with the assumption that forcing the model to predict further into the future will encourage better predictions in the short term (one step ahead in this case) since the loss will be calculated for all ten predictions and will be used during training. Often times if you are only forecasting one step ahead, the model will tend to use the last available value as the prediction. This approach encourages real learning, even though we are only utilizing the first prediction after the fact.

@edf42001
Copy link
Author

Ok, thanks! That makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants