神经元网络模型的评估中报错,如何解决?

img

img


用classification_report报这个错误,有明白的大佬能帮忙解答一下解决方式吗

补充参考这两个链接
https://scikit-learn.org/stable/modules/generated/sklearn.metrics.classification_report.html
https://stackoverflow.com/questions/57916221/number-of-classes-4-does-not-match-size-of-target-names-6-try-specifying-the

类别数量不一样,可以看看testY 和 predictions 的维度是多少,从报错上来看这边只有2两个类别,和target_names的三个类别有冲突