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

Shape error when using feat_static_cat #3200

Open
DushyantSahoo opened this issue Jun 21, 2024 · 0 comments
Open

Shape error when using feat_static_cat #3200

DushyantSahoo opened this issue Jun 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@DushyantSahoo
Copy link

Hello,
I am using deepar for forecasting. My dataset has some static categorical features (10) and input-list shape for "feat_static_cat" is (n,10). I have defined the dataset in the following way-

training_ds = ListDataset( [{"start": vector (n,1), "target": vector (n,1), "feat_dynamic_real" : matrix (n,p),
     "feat_static_cat" :(n,10),  freq = "M", one_dim_target=True )

I am getting error-
GluonTSDataError: Array 'feat_static_cat' has bad shape - expected 1 dimensions, got 2.

DeepAR can take multiple categories but I am not sure how. This error is exactly same as #871. What is the best way to pass static category in the dataset? I am using gluonts version 0.14.4.

@DushyantSahoo DushyantSahoo added the bug Something isn't working label Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant