Description
(A clear and concise description of what the bug is.)
https://github.com/awslabs/gluonts/blob/dev/src/gluonts/nursery/robust-mts-attack/README.md
To Reproduce
(Please provide minimal example of code snippet that reproduces the error. For existing examples, please provide link.)
Error message or code output
(Paste the complete error message, including stack trace, or the undesired output that the above snippet produces.)
File "/home/seyed/forked/gift-eval/notebooks/gpvar/gluonts/src/gluonts/nursery/robust-mts-attack/train.py", line 109, in <module>
main()
File "/home/seyed/forked/gift-eval/notebooks/gpvar/gluonts/src/gluonts/nursery/robust-mts-attack/train.py", line 74, in main
ds = get_dataset(args.dataset, args.max_target_dim)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/seyed/forked/gift-eval/notebooks/gpvar/gluonts/src/gluonts/nursery/robust-mts-attack/datasets.py", line 34, in get_dataset
return traffic(max_target_dim=max_target_dim)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/seyed/forked/gift-eval/notebooks/gpvar/gluonts/src/gluonts/nursery/robust-mts-attack/multivariate/datasets/dataset.py", line 192, in traffic
return make_multivariate_dataset(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/seyed/forked/gift-eval/notebooks/gpvar/gluonts/src/gluonts/nursery/robust-mts-attack/multivariate/datasets/dataset.py", line 130, in make_multivariate_dataset
grouper_test(test_ds),
^^^^^^^^^^^^^^^^^^^^^
File "/home/seyed/forked/gift-eval/notebooks/gpvar/gluonts/src/gluonts/nursery/robust-mts-attack/multivariate/datasets/grouper.py", line 43, in __call__
return self._group_all(dataset)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/seyed/forked/gift-eval/notebooks/gpvar/gluonts/src/gluonts/nursery/robust-mts-attack/multivariate/datasets/grouper.py", line 52, in _group_all
grouped_dataset = self._prepare_test_data(dataset)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/seyed/forked/gift-eval/notebooks/gpvar/gluonts/src/gluonts/nursery/robust-mts-attack/multivariate/datasets/grouper.py", line 149, in _prepare_test_data
grouped_entry = np.array(grouped_entry)
^^^^^^^^^^^^^^^^^^^^^^^
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (6741,) + inhomogeneous part.
Environment
- Operating system:
- Python version:
- GluonTS version:
- MXNet version:
(Add as much information about your environment as possible, e.g. dependencies versions.)
Description
(A clear and concise description of what the bug is.)
https://github.com/awslabs/gluonts/blob/dev/src/gluonts/nursery/robust-mts-attack/README.md
To Reproduce
(Please provide minimal example of code snippet that reproduces the error. For existing examples, please provide link.)
Error message or code output
(Paste the complete error message, including stack trace, or the undesired output that the above snippet produces.)
Environment
(Add as much information about your environment as possible, e.g. dependencies versions.)