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

Function _compute_containment

join/LSH/lshensemble_benchmark.py:269–273  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

267
268
269def _compute_containment(x, y):
270 if len(x) == 0 or len(y) == 0:
271 return 0.0
272 intersection = len(np.intersect1d(x, y, assume_unique=True))
273 return float(intersection) / float(len(x))
274
275
276levels = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected