datasketch icon indicating copy to clipboard operation
datasketch copied to clipboard

Add the hashfunc check to minhash.py

Open gauss-clb opened this issue 4 years ago • 1 comments

Add the following code to jaccard of MinHash

if other.hashfunc != self.hashfunc:
	raise ValueError("Cannot compute Jaccard given MinHash with\
			different hashfuncs")

gauss-clb avatar Aug 01 '20 18:08 gauss-clb

Thanks! Can you make a pull request for this change?

ekzhu avatar Aug 11 '20 19:08 ekzhu