Cyril de Catheu
08/09/2023, 10:44 PMtraining_step
, _create_windows
and _parse_windows
.
I’m a bit confused by the code.
Is there a paper or some doc that describes the idea of what’s done there?Cristian (Nixtla)
08/09/2023, 10:53 PMinput_size
+ horizon
). The model will take the values in the input region (of size input_size
) to predict the future horizon
values. The training loss is based on the forecasting accuracy on the forecasted values. During each training step, we first sample batch_size
different time series of the dataset. Next, we sample windows_batch_size
different windows (starting at different random timestamps) from this subset of time series.create_windows
function is in charge sampling the windows from the batch (sampled by the loader).Phil
08/09/2023, 11:17 PMCristian (Nixtla)
08/09/2023, 11:18 PMPhil
08/09/2023, 11:19 PMCristian (Nixtla)
08/09/2023, 11:19 PMCyril de Catheu
08/10/2023, 7:54 AMdef _create_windows(self, batch, step, w_idxs=None):
# Parse common data
window_size = self.input_size + self.h
temporal_cols = batch["temporal_cols"]
temporal = batch["temporal"]
if step == "train":
if self.val_size + self.test_size > 0:
cutoff = -self.val_size - self.test_size
temporal = temporal[:, :, :cutoff]
I thought temporal would be of order 2. But it seems it’s of order 3 in temporal = temporal[:, :, :cutoff]
I had a look at TimeSeriesDataset but it did not help me to understand
Edit: is it of shape: batchSize, numTemporalColumns, maxSeriesSize
?Antoine SCHWARTZ -CROIX-
08/10/2023, 9:21 AMCyril de Catheu
08/10/2023, 10:04 AMCristian (Nixtla)
08/15/2023, 3:13 PMPhil
08/15/2023, 3:14 PMCristian (Nixtla)
08/15/2023, 3:14 PM