diff --git a/modules/deeplearning/icing_cnn.py b/modules/deeplearning/icing_cnn.py index 061cbaa3c7ab884bc83f1d938414645e7628ed59..65c29dcb7e65d07158afebc463a4ac732e61da94 100644 --- a/modules/deeplearning/icing_cnn.py +++ b/modules/deeplearning/icing_cnn.py @@ -483,7 +483,7 @@ class IcingIntensityNN: self.test_recall = tf.keras.metrics.Recall(name='test_recall') self.test_precision = tf.keras.metrics.Precision(name='test_precision') self.test_true_neg = tf.keras.metrics.TrueNegatives(name='test_true_neg') - self.test_true_pos = tf.keras.metrics.TrueNegatives(name='test_true_pos') + self.test_true_pos = tf.keras.metrics.TruePositives(name='test_true_pos') self.test_false_neg = tf.keras.metrics.FalseNegatives(name='test_false_neg') self.test_false_pos = tf.keras.metrics.FalsePositives(name='test_false_pos') else: @@ -493,7 +493,7 @@ class IcingIntensityNN: self.test_recall = tf.keras.metrics.Recall(name='test_recall') self.test_precision = tf.keras.metrics.Precision(name='test_precision') self.test_true_neg = tf.keras.metrics.TrueNegatives(name='test_true_neg') - self.test_true_pos = tf.keras.metrics.TrueNegatives(name='test_true_pos') + self.test_true_pos = tf.keras.metrics.TruePositives(name='test_true_pos') self.test_false_neg = tf.keras.metrics.FalseNegatives(name='test_false_neg') self.test_false_pos = tf.keras.metrics.FalsePositives(name='test_false_pos')