Beispiel #1
0
 def test_init(self):
     lsh = MinHashLSHEnsemble(threshold=0.8)
     self.assertTrue(lsh.is_empty())
Beispiel #2
0
 def test_index(self):
     lsh = MinHashLSHEnsemble(threshold=0.8)
     lsh.index(self._data(160))
     self.assertFalse(lsh.is_empty())
     self.assertTrue(41 in lsh)