valueerror unknown label type 'unknown' logistic regression code example Example: unknown label type: 'unknown' y=y.astype('int')