Skip to content

Commit

Permalink
update to remove chained indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
gregcaporaso committed May 1, 2024
1 parent 41db1bd commit c4e186c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions q2_sample_classifier/visuals.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ def _plot_confusion_matrix(y_test, y_pred, classes, normalize, palette,
predictions.loc["Overall Accuracy"] = ""
predictions.loc["Baseline Accuracy"] = ""
predictions.loc["Accuracy Ratio"] = ""
predictions.loc["Overall Accuracy"]["Overall Accuracy"] = accuracy
predictions.loc["Baseline Accuracy"]["Overall Accuracy"] = basline_accuracy
predictions.loc["Accuracy Ratio"]["Overall Accuracy"] = accuracy_ratio
predictions.loc["Overall Accuracy", "Overall Accuracy"] = accuracy
predictions.loc["Baseline Accuracy", "Overall Accuracy"] = basline_accuracy
predictions.loc["Accuracy Ratio", "Overall Accuracy"] = accuracy_ratio

return predictions, confusion

Expand Down

0 comments on commit c4e186c

Please sign in to comment.