Skip to content

Commit

Permalink
cosmetic adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuawe committed Nov 10, 2023
1 parent 9d7d888 commit fe31ef7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plotsandgraphs/binary_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def plot_confusion_matrix(
values_format="",
colorbar=False,
ax=ax,
text_kw={"visible": False},
# text_kw={"visible": False},
)
cmd.texts_ = []
cmd.text_ = []
Expand Down Expand Up @@ -115,7 +115,7 @@ def plot_confusion_matrix(


def plot_classification_report(
y_test: np.ndarray,
y_true: np.ndarray,
y_pred: np.ndarray,
title="Classification Report",
figsize=(8, 4),
Expand Down Expand Up @@ -158,7 +158,7 @@ def plot_classification_report(

cmap = "YlOrRd"

clf_report = classification_report(y_test, y_pred, output_dict=True, **kwargs)
clf_report = classification_report(y_true, y_pred, output_dict=True, **kwargs)
keys_to_plot = [
key
for key in clf_report.keys()
Expand Down

0 comments on commit fe31ef7

Please sign in to comment.