Skip to content

Commit 18e5412

Browse files
authored
Fixing a syntax issue in utils_model.py that results in an error in 3_train.py (#63)
1 parent a41f077 commit 18e5412

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: code/utils_model.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,12 @@ def calculate_confusion_matrix(all_labels: np.ndarray,
6060

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

63-
cm.style.hide_index()
63+
64+
# cm.style.hide_index()
65+
# Pandas hide_index method became deprecated since the version 1.4.0,
66+
# should be replaced by:
67+
cm.style.hide()
68+
6469
print(cm)
6570

6671

0 commit comments

Comments
 (0)