foamliu / Car-Recognition

Car Recognition with Deep Learning
MIT License
345 stars 135 forks source link

How to eradicate error from analyze code? #20

Closed Usman-Ghani123 closed 4 years ago

Usman-Ghani123 commented 4 years ago

~\Anaconda3\Lib\site-packages\sklearn\metrics_classification.py in confusion_matrix(y_true, y_pred, labels, sample_weight, normalize) 271 272 if labels is None: --> 273 labels = unique_labels(y_true, y_pred) 274 else: 275 labels = np.asarray(labels)

~\Anaconda3\Lib\site-packages\sklearn\utils\multiclass.py in unique_labels(*ys) 98 # Check that we don't mix string type with number type 99 if (len(set(isinstance(label, str) for label in ys_labels)) > 1): --> 100 raise ValueError("Mix of label input types (string and number)") 101 102 return np.array(sorted(ys_labels))

ValueError: Mix of label input types (string and number)