ValueError("Unknown label type: %s" % repr(ys)) code example Example: unknown label type: 'unknown' y=y.astype('int')