From 30e57b033d628222bd0c9f1ed52f20e8a704832a Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Tue, 18 May 2021 10:24:20 -0500 Subject: [PATCH] minor... --- modules/deeplearning/icing_cnn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/deeplearning/icing_cnn.py b/modules/deeplearning/icing_cnn.py index 061cbaa3..65c29dcb 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') -- GitLab