raise ValueError("Unknown label type: %r" % y_type) ValueError: Unknown label type: 'unknown' code example Example: unknown label type: 'unknown' y=y.astype('int')