DOC Correct the default value of values_format in plot_confusion_matrix
@@ -61,8 +61,7 @@ class ConfusionMatrixDisplay:
values_format : str, default=None
Format specification for values in confusion matrix. If `None`,
- the format specification is '.2f' for a normalized matrix, and
- 'd' for a unnormalized matrix.
+ the format specification is '.2g'.
ax : matplotlib axes, default=None
Axes object to plot on. If `None`, a new figure and axes is
@@ -165,8 +164,7 @@ def plot_confusion_matrix(estimator, X, y_true, labels=None,
values_format : str, default=None
Format specification for values in confusion matrix. If `None`,
- the format specification is '.2f' for a normalized matrix, and
- 'd' for a unnormalized matrix.
+ the format specification is '.2g'.
cmap : str or matplotlib Colormap, default='viridis'
Colormap recognized by matplotlib.
