# tff.simulation.baselines.ClientSpec

<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) |

Contains information for configuring clients within a training task.

    tff.simulation.baselines.ClientSpec(
        num_epochs,
        batch_size,
        max_elements=attr_dict['max_elements'].default,
        shuffle_buffer_size=attr_dict['shuffle_buffer_size'].default
    )

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `num_epochs` | An integer representing the number of passes each client performs over its entire local dataset. |
| `batch_size` | An integer representing the batch size used when iterating over client datasets. |
| `max_elements` | An optional positive integer governing the maximum number of examples used by each client. By default, this is set to `None` in which case clients use their full dataset. The maximun number of examples is taken after the entire local dataset is repeated for the number of passes defined by `num_epochs`. |
| `shuffle_buffer_size` | An optional positive integer specifying the shuffle buffer size to use. If set to `None`, a default value suitable for the task's dataset will be used. If set to `1`, no shuffling occurs. |

<br />