multilabel-indicator is not supported
这是我运行以下代码时遇到的错误信息:
confusion_matrix(y_test, predictions)
y_test
是一个形状为 DataFrame
的对象:
Horse | Dog | Cat
1 0 0
0 1 0
0 1 0
... ... ...
predictions
是一个 numpy array
:
[[1, 0, 0],
[0, 1, 0],
[0, 1, 0]]
我已经搜索了一下错误信息,但没有找到可应用的东西。有什么提示吗?