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