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

minor...

parent 139d51e2
No related branches found
No related tags found
No related merge requests found
......@@ -723,11 +723,16 @@ class IcingIntensityNN:
print('loss, acc: ', self.test_loss.result(), self.test_accuracy.result())
labels = np.concatenate(self.test_labels)
self.test_labels = labels
preds = np.concatenate(self.test_preds)
self.test_probs = preds
preds = np.where(preds > 0.5, 1, 0)
self.test_labels = labels
if NumClasses == 2:
preds = np.where(preds > 0.5, 1, 0)
else:
preds = np.argmax(preds, axis=1)
self.test_preds = preds
self.h5f_tst.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment