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

TimesNet for imputation ERROR Exception: The size of tensor a (5461) must match the size of tensor b (1000) at non-singleton dimension 1 #430

Closed
xiaoenli4816 opened this issue Jun 8, 2024 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@xiaoenli4816
Copy link

Issue description

The TimesNet method was used to recover the missing value of long time series observation meteorological data (11 variables).
The error is as follows:
2024-06-07 12:58:25 [INFO]: No given device, using default device: cpu
2024-06-07 12:58:25 [INFO]: Model files will be saved to imputation/timesnet\20240607_T125825
2024-06-07 12:58:25 [INFO]: Tensorboard file will be saved to imputation/timesnet\20240607_T125825\tensorboard
2024-06-07 12:58:25 [INFO]: TimesNet initialized with the given hyperparameters, the number of trainable parameters: 5,414,155
2024-06-07 12:58:25 [ERROR]: ❌ Exception: The size of tensor a (5461) must match the size of tensor b (1000) at non-singleton dimension 1
The length of the dataset is 5461 rows of records.

@xiaoenli4816 xiaoenli4816 added the question Further information is requested label Jun 8, 2024
Copy link

github-actions bot commented Jun 8, 2024

Hi there 👋,

Thank you so much for your attention to PyPOTS! You can follow me on GitHub to receive the latest news of PyPOTS. If you find PyPOTS helpful to your work, please star⭐️ this repository. Your star is your recognition, which can help more people notice PyPOTS and grow PyPOTS community. It matters and is definitely a kind of contribution to the community.

I have received your message and will respond ASAP. Thank you for your patience! 😃

Best,
Wenjie

@WenjieDu WenjieDu self-assigned this Jun 11, 2024
@WenjieDu
Copy link
Owner

This issue is caused by the overlong length that 5461 is larger than 1000, which is the default sample max length in TimesNet. I will make a PR to make the max length adaptive.

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

No branches or pull requests

2 participants