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

ValueError caused by a higher version of numpy setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (1, 2) + inhomogeneous part. #377

Open
ZhouShichan opened this issue Dec 5, 2023 · 2 comments

Comments

@ZhouShichan
Copy link

When using the PointDataset for dataset creation, if I set the input_window and output_window to different lengths, the following error occurs: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (1, 2) + inhomogeneous part.
For example:
err
I understand that this is not actual code, but the process of creating the dataset is similar.
And if I use data=np.array(list(zip(x,y))), everything is ok.
numpy=1.26.0

@aptx1231
Copy link
Member

不同长度是可以的,你是运行的什么命令?

@ZhouShichan
Copy link
Author

run_model,应该是 numpy 版本的问题。也可能是 linux 和 win 的差异。

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