powered by
A ListDataset is the format required by GluonTS. This function simplifies creating a GluonTS ListDataset.
GluonTS
to_gluon_list_dataset(data, date_var, value_var, id_var = NULL, freq = "D")
A data.frame
The date column (Timestamps)
The value column (Target)
The Time Series ID column for tracking time series in GluonTS
the Pandas Timestamp Frequency.
# NOT RUN { library(timetk) m4_daily %>% to_gluon_list_dataset( date_var = date, value_var = value, id_var = id, freq = "D" ) # } # NOT RUN { # }
Run the code above in your browser using DataLab