Skip to content
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

transformer/multivariate.ipynb GluonTSDataError #15

Open
kevindarby opened this issue Jun 6, 2023 · 5 comments
Open

transformer/multivariate.ipynb GluonTSDataError #15

kevindarby opened this issue Jun 6, 2023 · 5 comments

Comments

@kevindarby
Copy link

File ~/code/cqg/bts/spark/ml/.venv/lib/python3.9/site-packages/gluonts/torch/model/estimator.py:205, in PyTorchLightningEstimator.train_model(self, training_data, validation_data, from_predictor, shuffle_buffer_length, cache_data, ckpt_path, **kwargs)
...
93 """
94 if not condition:
---> 95 raise exception_class(message.format(*args, **kwargs))

GluonTSDataError: Input for field "target" does not have the requireddimension (field: target, ndim observed: 2, expected ndim: 1)

@kevindarby
Copy link
Author

gluonts==0.13.1

@kevindarby
Copy link
Author

happens on the train call

predictor = estimator.train(
training_data=dataset_train,
num_workers=8,
shuffle_buffer_length=1024
)

@kashif
Copy link
Owner

kashif commented Jun 6, 2023

hmm i see let me confirm... i might need to update it for the new gluonts api

@kevindarby
Copy link
Author

Thanks StudentTOutput changed too

@kashif
Copy link
Owner

kashif commented Jun 6, 2023

indeed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants