depictr.confusion_matrix_plot#

depictr.confusion_matrix_plot(y_true, y_pred, normalise=None, title=None)#

Confusion-matrix heatmap.

Parameters:
  • y_true (array-like) – True and predicted labels.

  • y_pred (array-like) – True and predicted labels.

  • normalise ({None, "true", "pred", "all"}) – Passed to scikit-learn’s confusion_matrix(normalize=...).

  • title (str, optional)

Return type:

plotnine.ggplot