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
Predict for future date without target value #597
Comments
thank you for using GluonTS. Using NaNs would be our recommended way of handling this. Another option would be to manually impute the missing values yourself (using time series means, for example). Please note that "cold-start' forecasts (not having any target values in the context before prediction), will be generally of lower quality than forecasts that have context data. Hope that helps! |
Thanks for your answer. The predictions are not good when I use Nan and my question would be why should we provide target values if the model is already been trained in the historical data. Won't sending the dates should be enough for the model to predict. Like we do in other algorithms like Prophet. |
It depends on the algorithm, of course. DeepAR uses the context target values to update the hidden state and compute the distribution parameters with the learned weights (that are estimated during training). You can find more information in the DeepAR paper. |
That explains it. Can you please suggest an algorithm in GluonTs that won't need a target value while predicting and some examples if possible. |
all of our models use the target values, if I recall correctly. |
Any model that will perform well even if the target value is Nan?. |
That is hard to say in general terms. I would suggest to experiment if any of the models works for you. Best, |
Sure... Thank you. |
@ManikandanThangavelu it seems that the DeepAR estimator is not taking NaN values in the training set? what can you suggest? |
I have the same doubt. How to forecast the target values with gluonts DeepAR? I have a time series from 1995-01-01 to 2021-10-01. Frequency=monthly. How to forecast values for the future (next 3 months): 2021-11-01 to 2022-01-01? Note that I dont have the target values for 2021-11-01, 2021-12-01 and 2022-01-01. Many thanks. |
Are you touching on ” You can use " |
Actually, I would like to know the target values for "2021-11-01", "2021-12-01" and "2022-01-01". I have a time series from "1995-01-01" to "2021-10-01". Monthly frequency. How to forecast values for the next 3 months: "2021-11-01", "2021-12-01" and "2022-01-01"? Here is the code:
As I understood, the predictions values are not for "2021-11-01", "2021-12-01" and "2022-01-01". How do I know to wich months this values refer to? How to forecast values for the next 3 months: "2021-11-01", "2021-12-01" and "2022-01-01"? Many thanks! |
You set prediction_length to 12 in DeepAREstimator, so you got 12 values. Hope this helps. |
Take a look at this code. It comes from "Advanced Forecasting with Python". It does not seem to forecast unknown future values, once it compares the last 28 values of test_ds (Listing 20-5. R2 score and prediction graph) with the predictions made over this same dataset test_ds (Listing 20-4. Prediction) How do I forecast unknown future values? Many thanks!
|
Why don't you ask Apress? I don't think this code is correct. |
Good afternoon all. |
I have to same issue to ask |
hello @zhongxianmen2020 , you must use the predcit function: |
I need to predict for future dates with some dates missing in between the training date and the date I wan to predict. So I wont be having any target values.
When I use Nan for target series, My forecast is mostly on 0.
The text was updated successfully, but these errors were encountered: