Posts

Showing posts with the label sequence

Valueerror: Setting An Array Element With A Sequence.

Image
Valueerror: Setting An Array Element With A Sequence. . The detected shape was (2,) + inhomogeneous part. I am new to this python coding, i tried to modified other author's code for object classification. Valueerror Setting An Array Element With A Sequence Python Guides from pythonguides.com When you pass a python tuple or list to be interpreted as a numpy array element: It means every single element of this array needs to be an integer. Remove the sparse=true argument in the input layer (var named g).