Skip to content
Snippets Groups Projects
Commit b972f2a5 authored by tomrink's avatar tomrink
Browse files

minor...

parent eebafafb
Branches
No related tags found
No related merge requests found
...@@ -463,14 +463,14 @@ class IcingIntensityNN: ...@@ -463,14 +463,14 @@ class IcingIntensityNN:
self.train_accuracy = tf.keras.metrics.BinaryAccuracy(name='train_accuracy') self.train_accuracy = tf.keras.metrics.BinaryAccuracy(name='train_accuracy')
self.test_accuracy = tf.keras.metrics.BinaryAccuracy(name='test_accuracy') self.test_accuracy = tf.keras.metrics.BinaryAccuracy(name='test_accuracy')
self.test_auc = tf.keras.metrics.AUC(name='test_auc') self.test_auc = tf.keras.metrics.AUC(name='test_auc')
self.test_f1 = tfa.metrics.F1Score(name='test_f1') self.test_f1 = tfa.metrics.F1Score(NumClasses, name='test_f1')
self.test_recall = tf.keras.metrics.Recall(name='test_recall') self.test_recall = tf.keras.metrics.Recall(name='test_recall')
self.test_precision = tf.keras.metrics.Precision(name='test_precision') self.test_precision = tf.keras.metrics.Precision(name='test_precision')
else: else:
self.train_accuracy = tf.keras.metrics.SparseCategoricalAccuracy(name='train_accuracy') self.train_accuracy = tf.keras.metrics.SparseCategoricalAccuracy(name='train_accuracy')
self.test_accuracy = tf.keras.metrics.SparseCategoricalAccuracy(name='test_accuracy') self.test_accuracy = tf.keras.metrics.SparseCategoricalAccuracy(name='test_accuracy')
self.test_auc = tf.keras.metrics.AUC(name='test_auc') self.test_auc = tf.keras.metrics.AUC(name='test_auc')
self.test_f1 = tfa.metrics.F1Score(name='f1_score') self.test_f1 = tfa.metrics.F1Score(NumClasses, name='f1_score')
self.test_recall = tf.keras.metrics.Recall(name='test_recall') self.test_recall = tf.keras.metrics.Recall(name='test_recall')
self.test_precision = tf.keras.metrics.Precision(name='test_precision') self.test_precision = tf.keras.metrics.Precision(name='test_precision')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment