Skip to content

Commit

Permalink
MAINT solve long line reported by flake8 (scikit-learn#24065)
Browse files Browse the repository at this point in the history
  • Loading branch information
glemaitre authored Jul 31, 2022
1 parent 610ada7 commit 6e5ef2e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sklearn/datasets/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def load_gzip_compressed_csv_data(
encoding="utf-8",
**kwargs,
):
"""Loads gzip-compressed `data_file_name` from `data_module` with `importlib.resources`.
"""Loads gzip-compressed with `importlib.resources`.
1) Open resource file with `importlib.resources.open_binary`
2) Decompress file obj with `gzip.open`
Expand Down
6 changes: 3 additions & 3 deletions sklearn/feature_selection/_rfe.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def _fit(self, X, y, step_score=None, **fit_params):

@available_if(_estimator_has("predict"))
def predict(self, X):
"""Reduce X to the selected features and then predict using the underlying estimator.
"""Reduce X to the selected features and predict using the estimator.
Parameters
----------
Expand All @@ -350,7 +350,7 @@ def predict(self, X):

@available_if(_estimator_has("score"))
def score(self, X, y, **fit_params):
"""Reduce X to the selected features and return the score of the underlying estimator.
"""Reduce X to the selected features and return the score of the estimator.
Parameters
----------
Expand Down Expand Up @@ -448,7 +448,7 @@ def _more_tags(self):


class RFECV(RFE):
"""Recursive feature elimination with cross-validation to select the number of features.
"""Recursive feature elimination with cross-validation to select features.
See glossary entry for :term:`cross-validation estimator`.
Expand Down
4 changes: 2 additions & 2 deletions sklearn/utils/tests/test_param_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,8 @@ def test_validate_params_set_param_constraints_attribute():


def test_boolean_constraint_deprecated_int():
"""Check that validate_params raise a deprecation message but still passes validation
when using an int for a parameter accepting a boolean.
"""Check that validate_params raise a deprecation message but still passes
validation when using an int for a parameter accepting a boolean.
"""

@validate_params({"param": ["boolean"]})
Expand Down

0 comments on commit 6e5ef2e

Please sign in to comment.