Unknown label type: 'unknown' sklearn logistic regressiono code example Example: unknown label type: 'unknown' y=y.astype('int')