tff.simulation.datasets.shakespeare.get_synthetic

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

The returned tff.simulation.datasets.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.datasets.ClientData of synthentic Shakespeare text.