-
Notifications
You must be signed in to change notification settings - Fork 296
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
There are missing combinations of ids and times in futr_df
.
#979
Comments
Does it work if you set |
Yes, I had tried to set |
This is very unlikely, since that's the structure used by predict. If you can provide a reproducible example of that behavior we can help further. |
Are you providing the target as a future exogenous feature? If you're not using exogenous features you don't need to provide |
Yes,I think I should take the target as a future exogenous feature.In fact, I learned the usage of PatchTST from the official documentation, and the |
So you want to predict |
Yes, I think so, because that's how it seems to be used in the official documentation. And I do want to predict |
Which documentation are you referring to? I'm pretty sure that just |
I RUN INTO IT TOO,complete disaster. |
i was using TFT,and i did not predict y by y ,and the error ocured. by the way what should i put at futr_df? |
It's in Nixtla's official documentation of PatchTST usage example,and the URL is https://nixtlaverse.nixtla.io/neuralforecast/models.patchtst.html#patchtst. |
That example is wrong, it's not using any exogenous features. Can you try just running |
What happened + What you expected to happen
When I use PatchTST for stock price prediction, the following error occured in nf.predict(futr_df=y_test):There are missing combinations of ids and times in
futr_df
.My data is stock prices for the last ten years, and since stocks don't trade during the holidays, there are no stock prices during those times, so the 'ds' in my data is not completely continuousVersions / Dependencies
pytorch
neuralforcast
Reproduction script
model = PatchTST(h=17,
input_size=100,
patch_len=24,
stride=24,
revin=False,
hidden_size=16,
n_heads=4,
scaler_type='robust',
loss=MAE(),
learning_rate=1e-3,
max_steps=500,
val_check_steps=50,
early_stop_patience_steps=2)
nf = NeuralForecast(
models=[model],
freq='D'
)
nf.fit(df=y_train, val_size=17)
forecasts = nf.predict(futr_df=y_test)
Issue Severity
High: It blocks me from completing my task.
The text was updated successfully, but these errors were encountered: