We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is more a feature request than an issue (sorry if it is not the correct place to report this).
I think it could be very useful to have a functionality that exports and imports efficiently a bounter object to and from a file.
bounter
Something like:
from bounter import CountMinSketch cms = CountMinSketch(size_mb=xxx) cms.update(['a', 'b', 'c', 'a']) cms.export('file') cms = CountMinSketch(file='file') print(cms.counts['a'])
I believe this can be accomplished with this:
import pickle from bounter import CountMinSketch cms = CountMinSketch(size_mb=xxx) cms.update(['a', 'b', 'c', 'a']) with open('counter.pkl', 'wb') as f: pickle.dump(cms, f) with open('counter.pkl', 'rb') as f: cms = pickle.load(f) print(b.size()) print(b['a'])
But maybe there is a more efficient way to export the object.
Thank you in advance.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is more a feature request than an issue (sorry if it is not the correct place to report this).
Description
I think it could be very useful to have a functionality that exports and imports efficiently a
bounter
object to and from a file.Something like:
I believe this can be accomplished with this:
But maybe there is a more efficient way to export the object.
Thank you in advance.
The text was updated successfully, but these errors were encountered: