evalml.model_understanding.
confusion_matrix
Confusion matrix for binary and multiclass classification.
y_true (pd.Series or np.array) – True binary labels.
y_pred (pd.Series or np.array) – Predictions from a binary classifier.
normalize_method ({'true', 'pred', 'all'}) – Normalization method. Supported options are: ‘true’ to normalize by row, ‘pred’ to normalize by column, or ‘all’ to normalize by all values. Defaults to ‘true’.
Confusion matrix. The column header represents the predicted labels while row header represents the actual labels.
pd.DataFrame