Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

error means: you need integer labels, but you have something else there.

you also don't need random shuffeling of the samples / labels here.

error means: you need integer labels, but you have something else there.

try with:

labels = np.array(labels, np.int32) # without any type, default is np.float64 !

you also don't need random shuffeling of the samples / labels here.

error means: you need integer labels, but you have something else there.

try with:

labels = np.array(labels, np.int32) # without any type, default is np.float64 np.int64 !

you also don't need random shuffeling of the samples / labels here.