Skip to content

Commit

Permalink
Fix flake8 noqa: _minhash_encoder (#773)
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent M <[email protected]>
  • Loading branch information
juanitorduz and Vincent-Maladiere authored Oct 2, 2023
1 parent 2945e6f commit 887145d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions skrub/_minhash_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,9 @@
NoneType = type(None)


# Ignore lines too long, first docstring lines can't be cut
# flake8: noqa: E501


class MinHashEncoder(TransformerMixin, BaseEstimator):
"""Encode string categorical features by applying the MinHash method to n-gram decompositions of strings.
"""Encode string categorical features by applying the MinHash method to n-gram \
decompositions of strings.
The principle is as follows:
Expand Down Expand Up @@ -81,7 +78,8 @@ class MinHashEncoder(TransformerMixin, BaseEstimator):
See Also
--------
GapEncoder
Encodes dirty categories (strings) by constructing latent topics with continuous encoding.
Encodes dirty categories (strings) by constructing latent topics with
continuous encoding.
SimilarityEncoder
Encode string columns as a numeric array with n-gram string similarity.
deduplicate
Expand Down Expand Up @@ -341,7 +339,7 @@ def transform(self, X: ArrayLike) -> NDArray:
# Handle missing values
missing_mask = (
~(X == X) # Find np.nan
| (X == None) # Find None. Note: `X is None` doesn't work.
| (X == None) # noqa: E711 Find None. Note: `X is None` doesn't work.
| (X == "") # Find empty strings
)

Expand Down

0 comments on commit 887145d

Please sign in to comment.