[Solved] Confusion matrix fails to show all labels
I think there is confusion here! a confusion matrix is set(y_test) + set(y_pred). so if this comes to be 8. then the matrix will be 8 X 8. Now, if you have more labels you want to print even though it does not matter if it’s all zero. then while building the matrix , you … Read more