xiaxin1998/DHCN

Do you have such an error "ValueError: setting an array element with a sequence" when you run the code?

Fengxuxu opened this issue · 5 comments

发生异常: ValueError
setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (719470,) + inhomogeneous part.
File "/17119/mf/models/DHCN/util.py", line 43, in init
self.raw = np.asarray(data[0])
^^^^^^^^^^^^^^^^^^^
File "/17119/mf/models/DHCN/main.py", line 41, in main
train_data = Data(train_data, shuffle=True, n_node=n_node)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/17119/mf/models/DHCN/main.py", line 72, in
main()
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (719470,) + inhomogeneous part.

do you change the codes?

Hello, I also met the same problem, may I ask you to solve it?