tff.analytics.count_distinct.create_federated_hyperloglog_computation
Stay organized with collections
Save and categorize content based on your preferences.
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.
|
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.
[null,null,["Last updated 2024-09-20 UTC."],[],[],null,["# tff.analytics.count_distinct.create_federated_hyperloglog_computation\n\n\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/federated/blob/v0.87.0 Version 2.0, January 2004 Licensed under the Apache License, Version 2.0 (the) |\n\nCreates a [`tff.Computation`](../../../tff/Computation) to estimate the number of distinct strings. \n\n tff.analytics.count_distinct.create_federated_hyperloglog_computation(\n *, use_secagg: bool = False\n ) -\u003e ../../../tff/Computation\n\nThe returned computation consumes data @CLIENTS and produces an estimate of\nthe number of unique words across all clients @SERVER.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|--------------|-------------------------------------------------------------------------------------------|\n| `use_secagg` | Flag to specify if secure aggregation is necessary when computing the hyperloglog sketch. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A [`tff.Computation`](../../../tff/Computation) for running the HyperLogLog algorithm. ||\n\n\u003cbr /\u003e"]]