Skip to content

Commit a43640f

Browse files
authored
DOC Improve docstring for tol in SequentialFeatureSelector (#26271)
1 parent f0d6a9c commit a43640f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sklearn/feature_selection/_sequential.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ class SequentialFeatureSelector(SelectorMixin, MetaEstimatorMixin, BaseEstimator
3939
n_features_to_select : "auto", int or float, default='warn'
4040
If `"auto"`, the behaviour depends on the `tol` parameter:
4141
42-
- if `tol` is not `None`, then features are selected until the score
43-
improvement does not exceed `tol`.
42+
- if `tol` is not `None`, then features are selected while the score
43+
change does not exceed `tol`.
4444
- otherwise, half of the features are selected.
4545
4646
If integer, the parameter is the absolute number of features to select.
@@ -53,7 +53,7 @@ class SequentialFeatureSelector(SelectorMixin, MetaEstimatorMixin, BaseEstimator
5353
The default changed from `None` to `"warn"` in 1.1 and will become
5454
`"auto"` in 1.3. `None` and `'warn'` will be removed in 1.3.
5555
To keep the same behaviour as `None`, set
56-
`n_features_to_select="auto" and `tol=None`.
56+
`n_features_to_select="auto"` and `tol=None`.
5757
5858
tol : float, default=None
5959
If the score is not incremented by at least `tol` between two

0 commit comments

Comments
 (0)