Skip to content

Commit

Permalink
Test Client: Improve prediction success visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelfuchs committed Nov 16, 2022
1 parent 0da486d commit 33b440e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/4_test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('└───────┴────────────┘')


Expand Down

0 comments on commit 33b440e

Please sign in to comment.