hi @SoulHokib
You can draw the confusion matrix as given here:

  
      
      deeplizard.com
  
  
    

CNN Confusion Matrix with PyTorch - Neural Network Programming 8

In this episode, we learn how to build, plot, and interpret a confusion matrix using PyTorch. We also talk about locally disabling PyTorch gradient tracking or computational graph generation. This is


  
  
    
    
  
  


You can get the tn,tp,fn,fp as follows:

  
      stackoverflow.com
  
  
      
    
  

  Scikit-learn: How to obtain True Positive, True Negative, False Positive and False Negative 2



  python, machine-learning, scikit-learn, classification



  asked by
  
  
    Euskalduna
  
  on 05:19PM - 09 Jul 15 UTC