8000 MAINT solve long line reported by flake8 by glemaitre · Pull Request #24065 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

MAINT solve long line reported by flake8 #24065

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 1 commit into from
Jul 31, 2022
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
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