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.
2 | No.2 Revision |
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.
3 | No.3 Revision |
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.