This repository provides an example of federated learning with Flower framework on LEAF.
$ git clone --recursive https://github.com/yonetaniryo/flwr_leaf.git
$ cd flwr_leaf
$ pip install .[dev]
See https://github.com/TalwalkarLab/leaf/tree/master/data/synthetic for input arguments.
$ cd leaf/data/synthetic
$ python main.py -num-tasks 1000 -num-classes 5 -num-dim 64 # `num_tasks`: maximum number of clients
$ sh preprocess.sh -s niid --sf 1.0 -k 100 -t sample --tf 0.6
$ cd scripts
$ bash run.sh