2 Commits 99ebbe9235 ... ac2e33b7ac

Autore SHA1 Messaggio Data
  Ruben ac2e33b7ac Merge remote-tracking branch 'origin/ruben_model_CNN_tests' into ruben_model_CNN_tests 5 mesi fa
  Ruben 38ca4cb5bb working model used at poster 5 mesi fa
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      utils/CNN.py

+ 5 - 1
utils/CNN.py

@@ -9,7 +9,7 @@ import pandas as pd
 import matplotlib.pyplot as plt
 import time
 import numpy as np
-from sklearn.metrics import roc_curve, auc, confusion_matrix
+from sklearn.metrics import roc_curve, auc, confusion_matrix, classification_report
 import seaborn as sns
 
 class CNN_Net(nn.Module):
@@ -182,6 +182,10 @@ class CNN_Net(nn.Module):
             plt.savefig('./confusion_matrix.png')
             plt.show()
 
+            # Classification Report
+            report = classification_report(true_labels, predictionsLabels)
+            print(report)
+
         self.train()
 
         return(loss.item())