Comments (3)
It is possible to provide an api to return the count, but due to the principle of the counting bloom filter itself, this count is not an accurate statistic, but only a rough estimate, and if too much elements are inserted to this bloom filter, the more inaccurate this estimate will be. Does this meet your needs?
from fastbloom.
Yes, that works for the scenario I am working on. And the current 4 bits of counting works perfect for my scenario. Appreciate it @yankun1992!
from fastbloom.
In CountingBloomFilter, add methods estimate_count
and counter_at
to support this fearure.
Usage examples can be find at https://github.com/yankun1992/fastbloom/blob/main/py_tests/test_counting_bloom_filter.py#L96
from fastbloom.
Related Issues (13)
- Request: Upgrade murmur3 hashing to XXH3 hashing HOT 3
- Request: Method for lookups based on pre-computed hashes HOT 3
- Bug: CountingBloomFilter should not use hash1 membership if enable_repeat_insert=true HOT 3
- Features: enhance bulk operations API. HOT 1
- Would it be possible to have add_if_not_contains? HOT 2
- cross language support (java) HOT 4
- add serde support
- How to save and load the created filter HOT 1
- Add set cardinality etimation HOT 5
- Load from file (wsl, Python) HOT 11
- Serialize bloom filter using serde HOT 1
- panic: index out of bounds
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastbloom.