You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/opt/venv/test/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3508, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 21, in
lsh = MinHashLSH(threshold=1, num_perm=128)
File "/opt/venv/test/lib/python3.8/site-packages/datasketch/lsh.py", line 174, in init
raise ValueError("The number of bands are too small (b < 2)")
ValueError: The number of bands are too small (b < 2)
The text was updated successfully, but these errors were encountered:
There's no need to use LSH for threshold=1.0 since that would only match items with the exact same MinHash. Instead, you can store items in a dict keyed by the hash of the entire MinHash, or even skip using MinHash and just use a single hash of the entire item.
Is it can't set threshold=1 when using MinHashLSH? I got error when I using
MinHashLSH
and setthreshold=1
:here is the code:
and got error:
The text was updated successfully, but these errors were encountered: