8000 DOC RFE docstring + link RFECV in narrative docs · seckcoder/scikit-learn@890bb8e · GitHub
[go: up one dir, main page]

Skip to content

Commit 890bb8e

Browse files
larsmansGaelVaroquaux
authored andcommitted
DOC RFE docstring + link RFECV in narrative docs
1 parent 9d0cc93 commit 890bb8e

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

doc/modules/feature_selection.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ are the smallest are pruned from the current set features. That procedure is
6262
recursively repeated on the pruned set until the desired number of features to
6363
select is eventually reached.
6464

65+
:class:`RFECV` performs RFE in a cross-validation loop to find the optimal
66+
number of features.
67+
6568
.. topic:: Examples:
6669

6770
* :ref:`example_plot_rfe_digits.py`: A recursive feature elimination example

sklearn/feature_selection/rfe.py

Lines changed: 4 additions & 4 deletions

0 commit comments

Comments
 (0)
0
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ def fit(self, X, y):
107107
108108
Parameters
109109
----------
110-
X : array of shape [n_samples, n_features]
110+
X : {array-like, sparse matrix}, shape = [n_samples, n_features]
111111
The training input samples.
112112
113-
y : array of shape [n_samples]
113+
y : array-like, shape = [n_samples]
114114
The target values.
115115
"""
116116
X, y = check_arrays(X, y, sparse_format="csr")
@@ -319,11 +319,11 @@ def fit(self, X, y):
319319
320320
Parameters
321321
----------
322-
X : array of shape [n_samples, n_features]
322+
X : {array-like, sparse matrix}, shape = [n_samples, n_features]
323323
Training vector, where `n_samples` is the number of samples and
324324
`n_features` is the total number of features.
325325
326-
y : array of shape [n_samples]
326+
y : array-like, shape = [n_samples]
327327
Target values (integers for classification, real numbers for
328328
regression).
329329
"""