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

Method copy

join/LSH/datasketch/minhash.py:247–253  ·  view source on GitHub ↗

:returns: datasketch.MinHash -- A copy of this MinHash by exporting its state.

(self)

Source from the content-addressed store, hash-verified

245 self.hashvalues = self._init_hashvalues(len(self))
246
247 def copy(self):
248 '''
249 :returns: datasketch.MinHash -- A copy of this MinHash by exporting its state.
250 '''
251 return MinHash(seed=self.seed, hashfunc=self.hashfunc,
252 hashvalues=self.digest(),
253 permutations=self.permutations)
254
255 def __len__(self):
256 '''

Callers 8

merge_dictsFunction · 0.80
copy_unique_filesFunction · 0.80
merge_dictsFunction · 0.80
__getstate__Method · 0.80
__getstate__Method · 0.80
digestMethod · 0.80
generatorMethod · 0.80
copyHeapFunction · 0.80

Calls 2

digestMethod · 0.95
MinHashClass · 0.85

Tested by

no test coverage detected