Closed ljmartin closed 2 years ago
Hi rbm, Is it possible to calculate bulk Jaccard distances across a MultiRoaringBitmap where the query is not already within the MultiRoaringBitmap?
MultiRoaringBitmap
A straightforward way might be:
multi_rb = MultiRoaringBitmap(list_of_indices, filename='index') rbm = RoaringBitmap([0,3,6]) jacs = [r.jaccard_dist(b) for b in multi_rb]
Perhaps there's not much overhead working directly in python, but I figured there might be a cleverer/faster way to do this. Thanks! Lewis
I added a method for this:
multi_rb.jaccar_dist_single(rbm)
cool, thanks a lot!
Hi rbm, Is it possible to calculate bulk Jaccard distances across a
MultiRoaringBitmap
where the query is not already within theMultiRoaringBitmap
?A straightforward way might be:
Perhaps there's not much overhead working directly in python, but I figured there might be a cleverer/faster way to do this. Thanks! Lewis