Skip to content

Commit

Permalink
Fixing a syntax issue in utils_model.py that results in an error in 3…
Browse files Browse the repository at this point in the history
…_train.py (#63)
  • Loading branch information
henriqk0 authored Jun 7, 2024
1 parent a41f077 commit 18e5412
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion code/utils_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ def calculate_confusion_matrix(all_labels: np.ndarray,

cm = pd.crosstab(index=actual, columns=predicted, normalize="index", dropna=False)

cm.style.hide_index()

# cm.style.hide_index()
# Pandas hide_index method became deprecated since the version 1.4.0,
# should be replaced by:
cm.style.hide()

print(cm)


Expand Down

0 comments on commit 18e5412

Please sign in to comment.