Skip to content

Commit

Permalink
debug printout
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-vaselli committed May 21, 2024
1 parent 92b3468 commit 9a80aca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ def plot_confusion_matrix1(cm, class_names):

def check_classification3(true, pred):
# Assuming true and pred have shape [batch_size, 3]
print("true shape:", true.shape)
true_label = np.argmax(true, axis=1)
pred_label = np.argmax(pred, axis=1)
print("true_label shape:", true_label.shape)
Expand Down

0 comments on commit 9a80aca

Please sign in to comment.