-
Notifications
You must be signed in to change notification settings - Fork 9
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
index and key are not present when using predict #35
Comments
I guess my question is how do I use known and static information when creating forecasts? |
Hello @vidarsumo, Definitively the To define the covariates, have you used the Getting started web page syntax ? Does the 'specifying the covariate' section fail with your experiment ? Hope it helps |
If I'm not mistaken, then
Am I doing something wrong here? |
Hello @vidarsumo Sorry, my mistake, you are right :
|
Will it be possible to predict complete data like |
Hello @Ujjwal4CULS I cannot reproduce your issue with the example documented here. Could you please open a dedicated issue with a Reproductible Example |
Sorry for my incomplete information. For example, on the above code, can it possible to predict application on data_tbl like this suppressPackageStartupMessages(library(tidymodels)) Preparing datadata_tbl <- timetk::walmart_sales_weekly %>% fit_data <- data_tbl %>% future_data <- data_tbl %>% TFTrec <- recipe(Weekly_Sales ~ ., data = fit_data) %>% spec <- tft_dataset_spec(rec, fit_data) %>% tft_model <- temporal_fusion_transformer(spec) fitted <- tft_model %>% |
I have future known values so I need to pass the data set to new_data in predict() but it only gives me .pred_lower, .pred and .pred_upper. No index (date) or key (id) present in the output which is important as the data set contains multiple time series.
Using
generics::forecast()
instead and skipping the known future data gives the desired output (i.e. containing date and id):Do I need to do anything for the
predict()
function to return the index and the key?The text was updated successfully, but these errors were encountered: