Confusion matrix

Parameters
  • df: pd.DataFrame
    The dataframe with the data to plot
  • y_true: str
    The ground truth label. Values can be integers or strings.
  • y_pred: str
    The column name of the predicted label. Values can be integers or strings.
  • media: str
    The column name of the media to display
Example