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
pd.DataFrame