From 33b440edd57a5c97a5f219d650dbbb0de1d9b624 Mon Sep 17 00:00:00 2001 From: Manuel Fuchs Date: Wed, 16 Nov 2022 18:18:57 +0100 Subject: [PATCH] Test Client: Improve prediction success visibility --- src/4_test_client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/4_test_client.py b/src/4_test_client.py index 467fff3..81dfb3b 100644 --- a/src/4_test_client.py +++ b/src/4_test_client.py @@ -79,7 +79,8 @@ def pretty_print_results(pred_samples, y_samples): '├───────┼────────────┤') if pred_samples is not None: for label, prediction in zip(y_samples, pred_samples): - print(f'│ {label:<5} │ {prediction} │') + success_label = '✅' if label == prediction else '❌' + print(f'│ {label:<5} │ {prediction} │ {success_label}') print('└───────┴────────────┘')