diff --git a/modules/deeplearning/icing_cnn.py b/modules/deeplearning/icing_cnn.py index 65c29dcb7e65d07158afebc463a4ac732e61da94..15a743edeb2a8c0c768740cc466674bcde99917c 100644 --- a/modules/deeplearning/icing_cnn.py +++ b/modules/deeplearning/icing_cnn.py @@ -664,7 +664,7 @@ class IcingIntensityNN: fn = self.test_false_neg.result().numpy() fp = self.test_false_pos.result().numpy() - mcc = (tp*tn) - (fp*fn) / np.sqrt((tp+fp)*(tp+fn)*(tn+fp)*(tn+fn)) + mcc = ((tp*tn) - (fp*fn))/np.sqrt((tp+fp)*(tp+fn)*(tn+fp)*(tn+fn)) print('loss, acc, recall, precision, auc, f1, mcc: ', self.test_loss.result().numpy(), self.test_accuracy.result().numpy(), recall, precsn, self.test_auc.result().numpy(), f1, mcc)