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

Multivariate input to predict univariate variables #6

Open
ricokoff opened this issue Oct 26, 2022 · 2 comments
Open

Multivariate input to predict univariate variables #6

ricokoff opened this issue Oct 26, 2022 · 2 comments

Comments

@ricokoff
Copy link

Hi,

I was wondering if it is possible to use your model with a multivariate input while predicting a univariate variable. If not, do you know what code I should change to make it work? As you are using some of the code from Informer, I was thinking about using the 'MS' features parameter, but this gives the following error in the encoder on line 109:

level = level.view(b, t, self.c_out, 1)
RuntimeError: shape '[32, 192, 1, 1]' is invalid for input of size 36864

Now I could reshape this level variable so it would be consistent with my data, but I don't know if your model is capable of handling that. Please let me know what you think.

Thanks for your time and contribution,

Rico

@gorold
Copy link
Contributor

gorold commented Nov 1, 2022

Hi, thanks for your interest in our work, one easy workaround to get univariate output variables will be to mask the unwanted dimensions in the output forecast.

@ricokoff
Copy link
Author

ricokoff commented Nov 4, 2022

Thanks for the response. This is indeed what I tried at first, but I suspected that it would make the training process a lot slower. However, if this is the only way then I will try it anyway with more computing time.

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