Module: tff.simulation.datasets
Stay organized with collections
Save and categorize content based on your preferences.
Datasets for running TensorFlow Federated simulations.
Modules
celeba
module: Libraries for the federated CelebA dataset for simulation.
cifar100
module: Libraries for the federated CIFAR-100 dataset for simulation.
emnist
module: Libraries for the federated EMNIST dataset for simulation.
flair
module: Libraries for loading the FLAIR dataset.
gldv2
module: Libraries for the federated Google Landmark v2 dataset for simulation.
inaturalist
module: Libraries for the federated iNaturalist dataset for simulation.
shakespeare
module: Libraries for the Shakespeare dataset for federated learning simulation.
stackoverflow
module: Libraries for the Stackoverflow dataset for federated learning simulation.
Classes
class ClientData
: Object to hold a federated dataset.
class FilePerUserClientData
: A tff.simulation.datasets.ClientData
that maps a set of files to a dataset.
class SqlClientData
: A tff.simulation.datasets.ClientData
backed by an SQL file.
class TestClientData
: A tff.simulation.datasets.ClientData
intended for test purposes.
class TransformingClientData
: Transforms client data, potentially expanding by adding pseudo-clients.
Functions
build_dataset_mixture(...)
: Build a new dataset that probabilistically returns examples.
build_single_label_dataset(...)
: Build a new dataset that only yields examples with a particular label.
build_synthethic_iid_datasets(...)
: Constructs an iterable of IID clients from a tff.simulation.datasets.ClientData
.
load_and_parse_sql_client_data(...)
: Load a ClientData
arises by parsing a serialized SqlClientData
.
save_to_sql_client_data(...)
: Serialize a federated dataset into a SQL database compatible with SqlClientData
.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-20 UTC."],[],[],null,["# Module: tff.simulation.datasets\n\n\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [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) |\n\nDatasets for running TensorFlow Federated simulations.\n\nModules\n-------\n\n[`celeba`](../../tff/simulation/datasets/celeba) module: Libraries for the federated CelebA dataset for simulation.\n\n[`cifar100`](../../tff/simulation/datasets/cifar100) module: Libraries for the federated CIFAR-100 dataset for simulation.\n\n[`emnist`](../../tff/simulation/datasets/emnist) module: Libraries for the federated EMNIST dataset for simulation.\n\n[`flair`](../../tff/simulation/datasets/flair) module: Libraries for loading the FLAIR dataset.\n\n[`gldv2`](../../tff/simulation/datasets/gldv2) module: Libraries for the federated Google Landmark v2 dataset for simulation.\n\n[`inaturalist`](../../tff/simulation/datasets/inaturalist) module: Libraries for the federated iNaturalist dataset for simulation.\n\n[`shakespeare`](../../tff/simulation/datasets/shakespeare) module: Libraries for the Shakespeare dataset for federated learning simulation.\n\n[`stackoverflow`](../../tff/simulation/datasets/stackoverflow) module: Libraries for the Stackoverflow dataset for federated learning simulation.\n\nClasses\n-------\n\n[`class ClientData`](../../tff/simulation/datasets/ClientData): Object to hold a federated dataset.\n\n[`class FilePerUserClientData`](../../tff/simulation/datasets/FilePerUserClientData): A [`tff.simulation.datasets.ClientData`](../../tff/simulation/datasets/ClientData) that maps a set of files to a dataset.\n\n[`class SqlClientData`](../../tff/simulation/datasets/SqlClientData): A [`tff.simulation.datasets.ClientData`](../../tff/simulation/datasets/ClientData) backed by an SQL file.\n\n[`class TestClientData`](../../tff/simulation/datasets/TestClientData): A [`tff.simulation.datasets.ClientData`](../../tff/simulation/datasets/ClientData) intended for test purposes.\n\n[`class TransformingClientData`](../../tff/simulation/datasets/TransformingClientData): Transforms client data, potentially expanding by adding pseudo-clients.\n\nFunctions\n---------\n\n[`build_dataset_mixture(...)`](../../tff/simulation/datasets/build_dataset_mixture): Build a new dataset that probabilistically returns examples.\n\n[`build_single_label_dataset(...)`](../../tff/simulation/datasets/build_single_label_dataset): Build a new dataset that only yields examples with a particular label.\n\n[`build_synthethic_iid_datasets(...)`](../../tff/simulation/datasets/build_synthethic_iid_datasets): Constructs an iterable of IID clients from a [`tff.simulation.datasets.ClientData`](../../tff/simulation/datasets/ClientData).\n\n[`load_and_parse_sql_client_data(...)`](../../tff/simulation/datasets/load_and_parse_sql_client_data): Load a `ClientData` arises by parsing a serialized `SqlClientData`.\n\n[`save_to_sql_client_data(...)`](../../tff/simulation/datasets/save_to_sql_client_data): Serialize a federated dataset into a SQL database compatible with `SqlClientData`."]]