Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pretty_confusion_matrix/pretty_confusion_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def pp_matrix(
pred_val_axis="y",
path_to_save_img="",
title="Confusion matrix",
**kwargs
):
"""
print conf matrix with default layout (like matlab)
Expand Down Expand Up @@ -183,6 +184,7 @@ def pp_matrix(

ax = sn.heatmap(
df_cm,
**kwargs,
annot=annot,
annot_kws={"size": fz},
linewidths=lw,
Expand All @@ -191,6 +193,7 @@ def pp_matrix(
cmap=cmap,
linecolor="w",
fmt=fmt,

)

# set ticklabels rotation
Expand Down