上面报错原因:logloss使用过程中,必须要求将输出用one-hot表示
ValueError: y_true and y_pred contain different number of classes 9, 2. Please provide the true labe
https://blog.youkuaiyun.com/qq_41475067/article/details/114002102
在使用logloss评估模型时,遇到ValueError提示真值和预测值的类别数量不匹配。博客详细解释了错误原因,并提供了解决方案,即确保模型的输出使用one-hot编码来表示类别。
https://blog.youkuaiyun.com/qq_41475067/article/details/114002102
6万+
3820

被折叠的 条评论
为什么被折叠?