def load_multivariate_constant_dataset(): metadata, train_ds, test_ds = constant_dataset() grouper_train = MultivariateGrouper(max_target_dim=NUM_SERIES) grouper_test = MultivariateGrouper(max_target_dim=NUM_SERIES) return TrainDatasets( metadata=metadata, train=grouper_train(train_ds), test=grouper_test(test_ds), )
def load_multivariate_constant_dataset(): dataset_info, train_ds, test_ds = constant_dataset() grouper_train = MultivariateGrouper(max_target_dim=10) grouper_test = MultivariateGrouper(num_test_dates=1, max_target_dim=10) metadata = dataset_info.metadata metadata.prediction_length = dataset_info.prediction_length return TrainDatasets( metadata=dataset_info.metadata, train=grouper_train(train_ds), test=grouper_test(test_ds), )