From b191422335a9039a063015608215a66222901c21 Mon Sep 17 00:00:00 2001 From: ivanpan0626 Date: Sat, 31 Aug 2024 17:38:49 -0400 Subject: [PATCH 1/7] DOC add link to plot_bias_variance.py --- examples/ensemble/plot_bias_variance.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/ensemble/plot_bias_variance.py b/examples/ensemble/plot_bias_variance.py index afc791e0f2a82..6c656e8b75b70 100644 --- a/examples/ensemble/plot_bias_variance.py +++ b/examples/ensemble/plot_bias_variance.py @@ -53,7 +53,9 @@ error of a single decision tree, and this difference indeed mainly stems from a reduced variance. -For further details on bias-variance decomposition, see section 7.3 of [1]_. +For further details on bias-variance decomposition, see section 7.3 of [1]_ or +see :ref:`sphx_glr_auto_examples_ensemble_plot_bias_variance.py` for an +example usage. References ---------- From ccee16a69499c96f57a745c5d9c5a6dfddaf2793 Mon Sep 17 00:00:00 2001 From: ivanpan0626 Date: Sat, 31 Aug 2024 19:25:09 -0400 Subject: [PATCH 2/7] Revert "DOC add link to plot_bias_variance.py" This reverts commit 2bdcc282995f55d0133e7eb28ad86f58b86d3d4e. --- examples/ensemble/plot_bias_variance.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/ensemble/plot_bias_variance.py b/examples/ensemble/plot_bias_variance.py index 6c656e8b75b70..afc791e0f2a82 100644 --- a/examples/ensemble/plot_bias_variance.py +++ b/examples/ensemble/plot_bias_variance.py @@ -53,9 +53,7 @@ error of a single decision tree, and this difference indeed mainly stems from a reduced variance. -For further details on bias-variance decomposition, see section 7.3 of [1]_ or -see :ref:`sphx_glr_auto_examples_ensemble_plot_bias_variance.py` for an -example usage. +For further details on bias-variance decomposition, see section 7.3 of [1]_. References ---------- From a81a630c63c900378d0803ca1c799db4bc5ca77e Mon Sep 17 00:00:00 2001 From: ivanpan0626 Date: Sat, 31 Aug 2024 19:42:03 -0400 Subject: [PATCH 3/7] Update _affinity_propagation.py --- sklearn/cluster/_affinity_propagation.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sklearn/cluster/_affinity_propagation.py b/sklearn/cluster/_affinity_propagation.py index 33bbcb77ff09a..ac037b05fd107 100644 --- a/sklearn/cluster/_affinity_propagation.py +++ b/sklearn/cluster/_affinity_propagation.py @@ -258,8 +258,8 @@ def affinity_propagation( Notes ----- - For an example, see :ref:`examples/cluster/plot_affinity_propagation.py - `. + For an example usage, + see :ref:`sphx_glr_auto_examples_cluster_plot_affinity_propagation.py`. When the algorithm does not converge, it will still return a arrays of ``cluster_center_indices`` and labels if there are any exemplars/clusters, @@ -396,8 +396,8 @@ class AffinityPropagation(ClusterMixin, BaseEstimator): Notes ----- - For an example, see :ref:`examples/cluster/plot_affinity_propagation.py - `. + For an example usage, + see :ref:`sphx_glr_auto_examples_cluster_plot_affinity_propagation.py`. The algorithmic complexity of affinity propagation is quadratic in the number of points. From c44c05e588038a108989d8c7157b2c8529902dfa Mon Sep 17 00:00:00 2001 From: ivanpan0626 Date: Sat, 31 Aug 2024 20:05:10 -0400 Subject: [PATCH 4/7] Update _dbscan.py --- sklearn/cluster/_dbscan.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sklearn/cluster/_dbscan.py b/sklearn/cluster/_dbscan.py index 12f9b74d0cdc3..ef12c1e11457c 100644 --- a/sklearn/cluster/_dbscan.py +++ b/sklearn/cluster/_dbscan.py @@ -120,8 +120,8 @@ def dbscan( Notes ----- - For an example, see :ref:`examples/cluster/plot_dbscan.py - `. + For an example, see + :ref:`sphx_glr_auto_examples_cluster_plot_dbscan.py`. This implementation bulk-computes all neighborhood queries, which increases the memory complexity to O(n.d) where d is the average number of neighbors, @@ -278,8 +278,8 @@ class DBSCAN(ClusterMixin, BaseEstimator): Notes ----- - For an example, see :ref:`examples/cluster/plot_dbscan.py - `. + For an example, see + :ref:`sphx_glr_auto_examples_cluster_plot_dbscan.py`. This implementation bulk-computes all neighborhood queries, which increases the memory complexity to O(n.d) where d is the average number of neighbors, From 4affb2229fe3e20463f5a840a5659ee24701034b Mon Sep 17 00:00:00 2001 From: ivanpan0626 Date: Sat, 31 Aug 2024 17:38:49 -0400 Subject: [PATCH 5/7] DOC add link to plot_bias_variance.py --- examples/ensemble/plot_bias_variance.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/ensemble/plot_bias_variance.py b/examples/ensemble/plot_bias_variance.py index afc791e0f2a82..6c656e8b75b70 100644 --- a/examples/ensemble/plot_bias_variance.py +++ b/examples/ensemble/plot_bias_variance.py @@ -53,7 +53,9 @@ error of a single decision tree, and this difference indeed mainly stems from a reduced variance. -For further details on bias-variance decomposition, see section 7.3 of [1]_. +For further details on bias-variance decomposition, see section 7.3 of [1]_ or +see :ref:`sphx_glr_auto_examples_ensemble_plot_bias_variance.py` for an +example usage. References ---------- From c60058a8aec88c2fce79aed6dd48ac75c07a6ed4 Mon Sep 17 00:00:00 2001 From: ivanpan0626 Date: Sat, 31 Aug 2024 19:25:09 -0400 Subject: [PATCH 6/7] Revert "DOC add link to plot_bias_variance.py" This reverts commit 2bdcc282995f55d0133e7eb28ad86f58b86d3d4e. --- examples/ensemble/plot_bias_variance.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/ensemble/plot_bias_variance.py b/examples/ensemble/plot_bias_variance.py index 6c656e8b75b70..afc791e0f2a82 100644 --- a/examples/ensemble/plot_bias_variance.py +++ b/examples/ensemble/plot_bias_variance.py @@ -53,9 +53,7 @@ error of a single decision tree, and this difference indeed mainly stems from a reduced variance. -For further details on bias-variance decomposition, see section 7.3 of [1]_ or -see :ref:`sphx_glr_auto_examples_ensemble_plot_bias_variance.py` for an -example usage. +For further details on bias-variance decomposition, see section 7.3 of [1]_. References ---------- From b1b5c00721cbe45893ac123b270c6df967b1e47f Mon Sep 17 00:00:00 2001 From: ivanpan0626 Date: Sun, 8 Sep 2024 15:54:54 -0400 Subject: [PATCH 7/7] additional example --- sklearn/cluster/_affinity_propagation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sklearn/cluster/_affinity_propagation.py b/sklearn/cluster/_affinity_propagation.py index ac037b05fd107..677421974bdc0 100644 --- a/sklearn/cluster/_affinity_propagation.py +++ b/sklearn/cluster/_affinity_propagation.py @@ -260,6 +260,8 @@ def affinity_propagation( ----- For an example usage, see :ref:`sphx_glr_auto_examples_cluster_plot_affinity_propagation.py`. + You may also check out, + :ref:`sphx_glr_auto_examples_applications_plot_stock_market.py` When the algorithm does not converge, it will still return a arrays of ``cluster_center_indices`` and labels if there are any exemplars/clusters,