As mentioned in the comments, some labels in y_test don't appear in y_pred . Specifically in this case, label '2' is never predicted: >>> set(y_test) ...
確定! 回上一頁