# tff.analytics.count_distinct.create_federated_hyperloglog_computation

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) 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) |

Creates a [`tff.Computation`](https://www.tensorflow.org/federated/api_docs/python/tff/Computation) to estimate the number of distinct strings.

    tff.analytics.count_distinct.create_federated_hyperloglog_computation(
        *, use_secagg: bool = False
    ) -> https://www.tensorflow.org/federated/api_docs/python/tff/Computation

The returned computation consumes data @CLIENTS and produces an estimate of
the number of unique words across all clients @SERVER.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `use_secagg` | Flag to specify if secure aggregation is necessary when computing the hyperloglog sketch. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A [`tff.Computation`](https://www.tensorflow.org/federated/api_docs/python/tff/Computation) for running the HyperLogLog algorithm. ||

<br />