parsnip.plot_confusion_matrix

parsnip.plot_confusion_matrix(predictions, classifications, figsize=(5, 4), title=None, verbose=True)

Plot a confusion matrix

Adapted from example that used to be at http://scikit-learn.org/stable/modules/generated/sklearn.metrics.confusion_matrix.html

Parameters:
  • predictions (Table) – Predictions from predict_dataset

  • classifications (Table) – Classifications from a Classifier

  • figsize (tuple, optional) – Figure size, by default (5, 4)

  • title (str, optional) – Figure title, by default None

  • verbose (bool, optional) – Whether to print additional statistics, by default True