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

Method digest

join/LSH/datasketch/minhash.py:221–228  ·  view source on GitHub ↗

Export the hash values, which is the internal state of the MinHash. Returns: numpy.array: The hash values which is a Numpy array.

(self)

Source from the content-addressed store, hash-verified

219 self.hashvalues = np.minimum(other.hashvalues, self.hashvalues)
220
221 def digest(self):
222 '''Export the hash values, which is the internal state of the
223 MinHash.
224
225 Returns:
226 numpy.array: The hash values which is a Numpy array.
227 '''
228 return copy.copy(self.hashvalues)
229
230 def is_empty(self):
231 '''

Callers 2

copyMethod · 0.95
sha1_hash32Function · 0.80

Calls 1

copyMethod · 0.80

Tested by

no test coverage detected