DeepAR very poor forecasts for weekly data #1189
Replies: 2 comments
-
@mariosantosprivate as a test, I suggest trying out a different output distribution, for example leaving the default one (student-t). In other cases it was observed that negative binomial might be hard to fit well. Another option for integer data is to use a The loss being optimized is negative log-likelihood. |
Beta Was this translation helpful? Give feedback.
-
@lostella Thank you, changing the distribution to default (student T) fixed it, the forecasts are no longer ridiculous. They're still not very accurate but I believe the cause for that may lie in the data itself. Mainly nominal categorical features with very high cardinality which were simply label encoded since one-hot in these cases would explode the memory. |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm training a Deep AR model on a dataset with 1800 time series of weekly sales, using both stat_cat_feat (product, store, region etc) and dynamic_real_feats (promotions, out_of_stock). The original dataset consisted of daily sales and I aggregated to weekly to minimize the ammount of zeros.
Using the negative binomial distribution with the original data (daily sales) I got average results, MASE = 0.66, but after aggregating them the forecasts are completely off, and MASE shot up to 10.
Unfortunately I cannot share the dataset, the following is the relevant code:
(freq is set to W-MON as the start date is a Monday and the data is weekly)
What might be causing this?
And an unrelated question to which I could not find the answer in the documentation, what is the default loss function being used?
Edit:
Training also outputs the following warning:
Beta Was this translation helpful? Give feedback.
All reactions