You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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:
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
The text was updated successfully, but these errors were encountered:
When using the PointDataset for dataset creation, if I set the
input_window
andoutput_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:
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
The text was updated successfully, but these errors were encountered: