8000 DOC Ensures that SequentialFeatureSelector passes numpydoc validation by genvalen · Pull Request #21035 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

DOC Ensures that SequentialFeatureSelector passes numpydoc validation #21035

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion maint_tools/test_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"SGDOneClassSVM",
"SGDRegressor",
"SelfTrainingClassifier",
"SequentialFeatureSelector",
"SimpleImputer",
"SparseRandomProjection",
"SpectralBiclustering",
Expand Down
9 changes: 7 additions & 2 deletions sklearn/feature_selection/_sequential.py
39AD
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ class SequentialFeatureSelector(SelectorMixin, MetaEstimatorMixin, BaseEstimator

See Also
--------
GenericUnivariateSelect : Univariate feature selector with configurable
strategy.
RFE : Recursive feature elimination based on importance weights.
RFECV : Recursive feature elimination based on importance weights, with
automatic selection of the number of features.
Expand Down Expand Up @@ -139,19 +141,22 @@ def __init__(
self.n_jobs = n_jobs

def fit(self, X, y=None):
"""Learn the features to select.
"""Learn the features to select from X.

Parameters
----------
X : array-like of shape (n_samples, n_features)
Training vectors.
Training vectors, where `n_samples` is the number of samples and
`n_features` is the number of predictors.

y : array-like of shape (n_samples,), default=None
Target values. This parameter may be ignored for
unsupervised learning.

Returns
-------
self : object
Returns the instance itself.
"""
tags = self._get_tags()
X = self._validate_data(
Expand Down
0