The flwr-datasets library is designed for the quick creation of datasets for federated learning, analytics, and evaluation. Key features include:
- Downloading datasets: Directly use any dataset available on the Hugging Face Hub.
- Partitioning datasets: Implement heterogeneity (non-IIDness) using various partitioning schemes or custom ones.
- Creating centralized datasets: Keep portions of the dataset unpartitioned for centralized evaluation.
- Visualization: Visualize label distributions of partitioned datasets to compare different parameters, datasets, or partitioning schemes.
The library integrates with popular formats and frameworks including Hugging Face, PyTorch, TensorFlow, Numpy, Pandas, Jax, and Arrow.