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

Method __eq__

join/LSH/datasketch/minhash.py:261–267  ·  view source on GitHub ↗

:returns: bool -- If their seeds and hash values are both equal then two are equivalent.

(self, other)

Source from the content-addressed store, hash-verified

259 return len(self.hashvalues)
260
261 def __eq__(self, other):
262 '''
263 :returns: bool -- If their seeds and hash values are both equal then two are equivalent.
264 '''
265 return type(self) is type(other) and \
266 self.seed == other.seed and \
267 np.array_equal(self.hashvalues, other.hashvalues)
268
269 @classmethod
270 def union(cls, *mhs):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected