From 8577a98749be4ef0ea2c41b6a61e38ed677d5fac Mon Sep 17 00:00:00 2001 From: Tarek Ashraf Date: Sun, 16 Mar 2025 15:08:56 +0200 Subject: [PATCH 1/2] Added a reference link to plot_feature_selection.py --- sklearn/feature_selection/_univariate_selection.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sklearn/feature_selection/_univariate_selection.py b/sklearn/feature_selection/_univariate_selection.py index 855ba5ad70f12..dc67ab0fa86e1 100644 --- a/sklearn/feature_selection/_univariate_selection.py +++ b/sklearn/feature_selection/_univariate_selection.py @@ -361,6 +361,9 @@ def r_regression(X, y, *, center=True, force_finite=True): ... ) >>> r_regression(X, y) array([-0.15..., 1. , -0.22...]) + + For more information about univariate feature selection: + :ref:`sphx_glr_auto_examples_feature_selection_plot_deature_selection.py` """ X, y = check_X_y(X, y, accept_sparse=["csr", "csc", "coo"], dtype=np.float64) n_samples = X.shape[0] From 821366f969736de20a473918ea68e1f39bdbe888 Mon Sep 17 00:00:00 2001 From: Tarek Ashraf Date: Sun, 16 Mar 2025 15:37:19 +0200 Subject: [PATCH 2/2] Added a reference link to plot_feature_selection.py --- sklearn/feature_selection/_univariate_selection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sklearn/feature_selection/_univariate_selection.py b/sklearn/feature_selection/_univariate_selection.py index dc67ab0fa86e1..4a4a2e97a45cd 100644 --- a/sklearn/feature_selection/_univariate_selection.py +++ b/sklearn/feature_selection/_univariate_selection.py @@ -363,7 +363,7 @@ def r_regression(X, y, *, center=True, force_finite=True): array([-0.15..., 1. , -0.22...]) For more information about univariate feature selection: - :ref:`sphx_glr_auto_examples_feature_selection_plot_deature_selection.py` + :ref:`sphx_glr_auto_examples_feature_selection_plot_feature_selection.py` """ X, y = check_X_y(X, y, accept_sparse=["csr", "csc", "coo"], dtype=np.float64) n_samples = X.shape[0]