-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MRG] Add FrozenMinHash
#1508
[MRG] Add FrozenMinHash
#1508
Conversation
Changed over to I think the main thing to add is some checks that Also want to think about whether |
Curious what you think, @luizirber - should I propose this for merge, or just leave it for now? I don't have a strong opinion other than that this contains the potential for significant optimization down the road, so baking it in now seems like a not bad idea (since it's really easy!) |
I think we should go for a merge.
This tripped me a bit while reviewing the code, because places that had This is not necessarily pythonic, but in Rust there are usually conventions around |
yep
right, I'm on board with the general idea. I will maybe try |
Ready for review, @luizirber @bluegenes |
Adds a
FrozenMinHash
type that is returned bySourmashSignature.minhash
.Also:
MinHash
method,to_mutable()
, that returnsself
forMinHash
and a mutable copy forFrozenMinHash
.to_frozen()
method that does the converseVery few changes are required to make all the tests pass. The ease of doing this suggests to me that this is a Good Change.
Explores #1494.