MCPcopy Create free account
hub / github.com/BIT-DataLab/LakeBench / _init_hashvalues

Method _init_hashvalues

join/LSH/datasketch/minhash.py:108–109  ·  view source on GitHub ↗
(self, num_perm)

Source from the content-addressed store, hash-verified

106 raise ValueError("Numbers of hash values and permutations mismatch")
107
108 def _init_hashvalues(self, num_perm):
109 return np.ones(num_perm, dtype=np.uint64)*_max_hash
110
111 def _init_permutations(self, num_perm):
112 # Create parameters for a random bijective permutation function

Callers 2

__init__Method · 0.95
clearMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected