From 0e4347a93a07fc6a388c33a65d1b7ccf225c8f56 Mon Sep 17 00:00:00 2001 From: Arjun S Date: Mon, 7 Apr 2025 21:36:42 +0530 Subject: [PATCH 1/2] DOC add link to plot_confusion_matrix example in sklearn/metrics/_plot/confusion_matrix.py --- sklearn/metrics/_plot/confusion_matrix.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sklearn/metrics/_plot/confusion_matrix.py b/sklearn/metrics/_plot/confusion_matrix.py index ad0821344661e..8da2ce33bf44b 100644 --- a/sklearn/metrics/_plot/confusion_matrix.py +++ b/sklearn/metrics/_plot/confusion_matrix.py @@ -316,6 +316,9 @@ def from_estimator( ... clf, X_test, y_test) <...> >>> plt.show() + For a detailed example of using a confusion matrix to evaluate a + Support Vector Classifier, please see + :ref:`sphx_glr_auto_examples_model_selection_plot_confusion_matrix.py` """ method_name = f"{cls.__name__}.from_estimator" check_matplotlib_support(method_name) From f5b4a788b325d6af4265521d69d42305a1d4a145 Mon Sep 17 00:00:00 2001 From: Maren Westermann Date: Mon, 14 Apr 2025 19:01:32 +0200 Subject: [PATCH 2/2] add blank line --- sklearn/metrics/_plot/confusion_matrix.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sklearn/metrics/_plot/confusion_matrix.py b/sklearn/metrics/_plot/confusion_matrix.py index 8da2ce33bf44b..63a5382f3fa2b 100644 --- a/sklearn/metrics/_plot/confusion_matrix.py +++ b/sklearn/metrics/_plot/confusion_matrix.py @@ -316,6 +316,7 @@ def from_estimator( ... clf, X_test, y_test) <...> >>> plt.show() + For a detailed example of using a confusion matrix to evaluate a Support Vector Classifier, please see :ref:`sphx_glr_auto_examples_model_selection_plot_confusion_matrix.py`