Module: tff.analytics.count_distinct
Stay organized with collections
Save and categorize content based on your preferences.
Implementation of federated HyperLogLog for counting distinct items.
See https://en.wikipedia.org/wiki/HyperLogLog for additional details on this
algorithm.
Functions
build_client_hyperloglog_computation(...)
: Builds a tff.Computation
for computing client hyperloglog sketches.
build_federated_secure_max_computation(...)
: Builds a tff.Computation
for computing max in a secure fashion.
create_federated_hyperloglog_computation(...)
: Creates a tff.Computation
to estimate the number of distinct strings.
Other Members |
HLL_ALPHA
|
0.697
|
HLL_BIT_INDEX_HEAD
|
5
|
HLL_BIT_INDEX_TAIL
|
27
|
HLL_SKETCH_SIZE
|
32
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-20 UTC."],[],[]]