Creating confusion matrix and calculating TP, TN,FP, FN I want to generate a confusion matrix for class 2. There is a total of four input classes namely 0,1,2,3. In particular test data batch, there is no input class 2.
I have shown actual and predicted class, confusion matrix, and TP-TN-FP-FN values. Is this correct?


Based on your actual and predicted matrix, the TP, FP, TN and FN values are correct for class 2.
