You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by GitBox <gi...@apache.org> on 2021/02/16 17:39:13 UTC
[GitHub] [datasketches-java] prateekiiest commented on pull request #350: Add a method in item sketch to retrieve active keys
prateekiiest commented on pull request #350:
URL: https://github.com/apache/datasketches-java/pull/350#issuecomment-780002118
Hi @jmalkin, apologies for the late reply.
The obvious use case is that at any given time point, I can get an accurate instance of what are the current probes residing in the hash data structure, which I feel can not be tried out via any other current api calls/combination of them.
You are right that at any point the activeKeys might not be relevant to the entire stream as a whole considering a heavy hitter application, where initial such activeKeys will be counted as noise.
- An interesting utility that I am also exploring in my work is to capture these fluctuating keys, which occur intermittently due to lower than group median freq - thus classifying as noise. As compared to CMS sketches which stores instead every possible incoming item frequency (thus including this noise as well), it can hint towards by how much fraction is the Frequent Item sketch more accurate than CMS (might not be in all cases) since CMS contains the noise factor for applications like heavy hitters.
- Also in applications like anomaly detection, where any item from the stream might be anomalous, then for each item, we would like to calculate some custom anomaly score which in turn is determined by the individual item frequency over time. In such scenarios, it might be required to track each individual item and how it appears in the sketch over time.
These are some ideas that are coming to my mind and also during my work I am requiring use cases as such, although examples like these might be rare, and one might alternatively get to know if an item exists in the sketch if getEstimate(item) != nan.
Look forward to your thoughts / suggestions
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org