Skip to content

Commit 5ef9fa4

Browse files
authored
DOC replace plot_confusion_matrix in See Also section (scikit-learn#19277)
1 parent e449f9f commit 5ef9fa4

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

sklearn/metrics/_classification.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,10 @@ def confusion_matrix(y_true, y_pred, *, labels=None, sample_weight=None,
259259
260260
See Also
261261
--------
262-
plot_confusion_matrix : Plot Confusion Matrix.
262+
ConfusionMatrixDisplay.from_estimator : Plot the confusion matrix
263+
given an estimator, the data, and the label.
264+
ConfusionMatrixDisplay.from_predictions : Plot the confusion matrix
265+
given the true and predicted labels.
263266
ConfusionMatrixDisplay : Confusion Matrix visualization.
264267
265268
References

sklearn/metrics/_plot/confusion_matrix.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ class ConfusionMatrixDisplay:
4949
--------
5050
confusion_matrix : Compute Confusion Matrix to evaluate the accuracy of a
5151
classification.
52-
plot_confusion_matrix : Plot Confusion Matrix.
52+
ConfusionMatrixDisplay.from_estimator : Plot the confusion matrix
53+
given an estimator, the data, and the label.
54+
ConfusionMatrixDisplay.from_predictions : Plot the confusion matrix
55+
given the true and predicted labels.
5356
5457
Examples
5558
--------

0 commit comments

Comments
 (0)