![]() |
Returns a small synthetic dataset for testing.
tff.simulation.datasets.emnist.get_synthetic(
num_clients=2
)
Each client produced has exactly 10 examples, one label for each digit. The
images are derived from a fixed set of hard-coded images, and transformed
using tff.simulation.datasets.emnist.get_infinite
to produce the desired
number of clients.
Args | |
---|---|
num_clients
|
The number of synthetic clients to generate. |
Returns | |
---|---|
A tff.simulation.ClientData object that matches the characteristics
(other than size) of those provided by
tff.simulation.datasets.emnist.load_data .
|