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

Method is_empty

join/LSH/datasketch/minhash.py:230–238  ·  view source on GitHub ↗

Returns: bool: If the current MinHash is empty - at the state of just initialized.

(self)

Source from the content-addressed store, hash-verified

228 return copy.copy(self.hashvalues)
229
230 def is_empty(self):
231 '''
232 Returns:
233 bool: If the current MinHash is empty - at the state of just
234 initialized.
235 '''
236 if np.any(self.hashvalues != _max_hash):
237 return False
238 return True
239
240 def clear(self):
241 '''

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected