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
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
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 usedata=np.array(list(zip(x,y)))
, everything is ok. numpy=1.26.0