8000 DOC Correct the default value of values_format in plot_confusion_matr… · scikit-learn/scikit-learn@14bf5bc · GitHub
[go: up one dir, main page]

Skip to content

Commit 14bf5bc

Browse files
qi
8000
nhanmin2014jnothman
authored andcommitted
DOC Correct the default value of values_format in plot_confusion_matrix (#15981)
1 parent d5dcf48 commit 14bf5bc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sklearn/metrics/_plot/confusion_matrix.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ def plot(self, include_values=True, cmap='viridis',
6161
6262
values_format : str, default=None
6363
Format specification for values in confusion matrix. If `None`,
64-
the format specification is '.2f' for a normalized matrix, and
65-
'd' for a unnormalized matrix.
64+
the format specification is '.2g'.
6665
6766
ax : matplotlib axes, default=None
6867
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,
165164
166165
values_format : str, default=None
167166
Format specification for values in confusion matrix. If `None`,
168-
the format specification is '.2f' for a normalized matrix, and
169-
'd' for a unnormalized matrix.
167+
the format specification is '.2g'.
170168
171169
cmap : str or matplotlib Colormap, default='viridis'
172170
Colormap recognized by matplotlib.

0 commit comments

Comments
 (0)
0