evalml.model_understanding.
normalize_confusion_matrix
Normalizes a confusion matrix.
conf_mat (pd.DataFrame or np.array) – confusion matrix to normalize.
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’.
normalized version of the input confusion matrix.
pd.DataFrame