We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d96b6e7 commit 6628db8Copy full SHA for 6628db8
datasketch/lsh.py
@@ -304,13 +304,14 @@ def _insert(
304
def __equivalent(self, other:MinHashLSH) -> bool:
305
"""
306
Returns:
307
- bool: If the two MinHashLSH has equal num_perm, band size and size of each bands then two are equivalent.
+ bool: If the two MinHashLSH have equal num_perm, number of bands, size of each band and hashfunc (if provided) then two are equivalent.
308
309
return (
310
type(self) is type(other) and
311
self.h == other.h and
312
self.b == other.b and
313
- self.r == other.r
+ self.r == other.r and
314
+ type(self.hashfunc) == type(other.hashfunc)
315
)
316
317
def _merge(
0 commit comments