multilabel-indicator is not supported
is the error message I get, when trying to run:
confusion_matrix(y_test, predictions)
y_test
is a DataFrame
which is of shape:
Horse | Dog | Cat
1 0 0
0 1 0
0 1 0
... ... ...
predictions
is a numpy array
:
[[1, 0, 0],
[0, 1, 0],
[0, 1, 0]]
I've searched a bit for the error message, but haven't really found something I could apply. Any hints?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…