tff.simulation.datasets.shakespeare.get_synthetic

Creates tff.simulation.ClientData for a synthetic in-memory example of Shakespeare.

The returned tff.simulation.ClientData will have the same data schema as load_data(), but uses a very small set of client data loaded in-memory.

This synthetic data is useful for validation in small tests.

A tff.simulation.ClientData of synthentic Shakespeare text.