From 1f994ee90d2aa0f9787fcb4317d5353cb3285534 Mon Sep 17 00:00:00 2001 From: ArturoAmorQ Date: Mon, 24 Apr 2023 11:45:16 +0200 Subject: [PATCH] DOC Improve docstring for tol in SequentialFeatureSelector --- sklearn/feature_selection/_sequential.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sklearn/feature_selection/_sequential.py b/sklearn/feature_selection/_sequential.py index 55468c5a219e3..bc1c4ac32ce1d 100644 --- a/sklearn/feature_selection/_sequential.py +++ b/sklearn/feature_selection/_sequential.py @@ -39,8 +39,8 @@ class SequentialFeatureSelector(SelectorMixin, MetaEstimatorMixin, BaseEstimator n_features_to_select : "auto", int or float, default='warn' If `"auto"`, the behaviour depends on the `tol` parameter: - - if `tol` is not `None`, then features are selected until the score - improvement does not exceed `tol`. + - if `tol` is not `None`, then features are selected while the score + change does not exceed `tol`. - otherwise, half of the features are selected. If integer, the parameter is the absolute number of features to select. @@ -53,7 +53,7 @@ class SequentialFeatureSelector(SelectorMixin, MetaEstimatorMixin, BaseEstimator The default changed from `None` to `"warn"` in 1.1 and will become `"auto"` in 1.3. `None` and `'warn'` will be removed in 1.3. To keep the same behaviour as `None`, set - `n_features_to_select="auto" and `tol=None`. + `n_features_to_select="auto"` and `tol=None`. tol : float, default=None If the score is not incremented by at least `tol` between two