-
Notifications
You must be signed in to change notification settings - Fork 25.3k
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
Using context length of 60, trying to predict next 7 days Close price. Error is : Lags cannot go further than history length #30903
Comments
Can someone please respond to this as soon as possible? |
Hi @Mohan16071996, you are getting the described error as the condition So, please adapt accordingly then the error would be gone. Just use context length as default or avoid using lags if you are using Cheers! |
right @Mohan16071996 so yeah increase the amount of time series by the max of the lag indices as that is how many time steps back the helpers will look to pull in the lagged values... |
Hi @kashif and @RUFFY-369 |
@Mohan16071996 No, basically context length is the length of input sequence or number of timesteps from the past data which you want to take in the context for making a prediction and as Autoformer is a self supervised model so it cant take a context length beyond its data which is the sequence length. So, give whatever value you want to experiment with but the sum of context length and lags should be less than or equal to length of the sequence or input size. If you want further more details then I think there is a blog about Autoformer |
I have used input size as 60, context length to be 50 and prediction length to be 7, Can you please suggest how to approach this issue? |
I am still confused between those two errors, I guess I am making a mistake in shapes of past and future features and in lags, input and context length configuration. Is there a blog or site that clearly mentions about these configuration? |
Hi @Mohan16071996 , yes, there is a fully detailed blog on Autoformer by Hugging face which previously mentioned: https://huggingface.co/blog/autoformer. I think going through that blog will give you more clarity on the model. And regarding your error it is due to this block of code where lagged seq derived from context length and time features shape are compared before passing them as inputs. So, yeah if you could go through that blog then it will help you a lot. Cheers, |
System Info
Who can help?
@kashif
Expected behavior
Model to be trained for all epochs given.
The text was updated successfully, but these errors were encountered: