Skip to content

Commit 2ca6d4d

Browse files
DOC:Add inline example link to RFECV class docstring (scikit-learn#30621) (scikit-learn#31476)
Co-authored-by: adrinjalali <adrin.jalali@gmail.com>
1 parent 4afccb9 commit 2ca6d4d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sklearn/feature_selection/_rfe.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,7 @@ class RFECV(RFE):
564564
different numbers of selected features and aggregated together. Finally, the scores
565565
are averaged across folds and the number of features selected is set to the number
566566
of features that maximize the cross-validation score.
567+
567568
See glossary entry for :term:`cross-validation estimator`.
568569
569570
Read more in the :ref:`User Guide <rfe>`.
@@ -755,6 +756,10 @@ class RFECV(RFE):
755756
False])
756757
>>> selector.ranking_
757758
array([1, 1, 1, 1, 1, 6, 4, 3, 2, 5])
759+
760+
For a detailed example of using RFECV to select features when training a
761+
:class:`~sklearn.linear_model.LogisticRegression`, see
762+
:ref:`sphx_glr_auto_examples_feature_selection_plot_rfe_with_cross_validation.py`.
758763
"""
759764

760765
_parameter_constraints: dict = {

0 commit comments

Comments
 (0)