LibCity / Bigscity-LibCity

LibCity: An Open Library for Urban Spatial-temporal Data Mining
https://libcity.ai/
Apache License 2.0
886 stars 163 forks source link

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 9 months ago

ZhouShichan commented 9 months ago

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 commented 9 months ago

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

ZhouShichan commented 8 months ago

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