~\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)
~\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)