linear_model.SGDClassifier() fit Unknown label type: code example Example: unknown label type: 'unknown' y=y.astype('int')