skrub/minhash-murmur-with-minmax
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| skrub | error | none, edit by hand | All versions |
MinHashEncoder raises ValueError("minmax_hash encoding is not supported with the murmur hashing function") during fit when hashing="murmur" is combined with minmax_hash=True.
enc = MinHashEncoder(n_components=30, hashing="murmur", minmax_hash=True)enc = MinHashEncoder(n_components=30, hashing="fast", minmax_hash=True)What the rule reports
Section titled “What the rule reports”Calls to MinHashEncoder that set both hashing="murmur" and minmax_hash=True.
How to fix it
Section titled “How to fix it”Switch hashing to "fast" (the default) when enabling minmax_hash=True, or disable minmax_hash.
Diagnostic message
Section titled “Diagnostic message”MinHashEncoder does not support minmax_hash=True with hashing='murmur' and raises ValueError at fit time. Use hashing='fast' or set minmax_hash=False.See all rules in the skrub pack.