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

Method get_counts

join/LSH/datasketch/lsh.py:318–325  ·  view source on GitHub ↗

Returns a list of length ``self.b`` with elements representing the number of keys stored under each bucket for the given permutation.

(self)

Source from the content-addressed store, hash-verified

316 return candidates
317
318 def get_counts(self):
319 '''
320 Returns a list of length ``self.b`` with elements representing the
321 number of keys stored under each bucket for the given permutation.
322 '''
323 counts = [
324 hashtable.itemcounts() for hashtable in self.hashtables]
325 return counts
326
327 # def get_subset_counts(self, *keys):
328 # '''

Callers

nothing calls this directly

Calls 1

itemcountsMethod · 0.45

Tested by

no test coverage detected