View source on GitHub |
Creates a tff.Computation
to estimate the number of distinct strings.
tff.analytics.count_distinct.create_federated_hyperloglog_computation(
*, use_secagg: bool = False
) -> tff.Computation
The returned computation consumes data @CLIENTS and produces an estimate of the number of unique words across all clients @SERVER.
Args | |
---|---|
use_secagg
|
Flag to specify if secure aggregation is necessary when computing the hyperloglog sketch. |
Returns | |
---|---|
A tff.Computation for running the HyperLogLog algorithm.
|