ValueError: Unknown label type: (array([1, 1, 1, ..., 0, 0, 0], dtype=object),) code example Example: unknown label type: 'unknown' y=y.astype('int')