Module: tff.simulation

Defined in simulation/

The public API for experimenters running federated learning simulations.


datasets module: Datasets for running Federated Learning experiments in simulation.


class ClientData: Object to hold a dataset and a mapping of clients to examples.

class FilePerUserClientData: A tf.simulation.ClientData that maps a set of files to a dataset.

class HDF5ClientData: A tf.simulation.ClientData backed by an HDF5 file.

class TransformingClientData: Transforms client data, potentially expanding by adding pseudo-clients.