Federated Learning Utility framework for Experimentation and research.
Project description
fluke: federated learning utility framework for experimentation and research
fluke
is a Python package that provides a framework for federated learning research. It is designed to be modular and extensible, allowing researchers to easily implement and test new federated learning algorithms. fluke
provides a set of pre-implemented state-of-the-art federated learning algorithms that can be used as a starting point for research or as a benchmark for comparison.
Installation
fluke
is a Python package that can be installed via pip. To install it, you can run the following command:
pip install fluke-fl
Run a federated algorithm
To run an algorithm in fluke
you need to create two configuration files:
EXP_CONFIG
: the experiment configuration file (independent from the algorithm);ALG_CONFIG
: the algorithm configuration file;
Then, you can run the following command:
fluke --config=EXP_CONFIG federation ALG_CONFIG
You can find some examples of these files in the configs folder of the repository.
Example
Let say you want to run the classic FedAvg
algorithm on the MNIST
dataset. Then, using the configuration files exp.yaml and fedavg.yaml, you can run the following command:
fluke --config=path_to_folder/exp.yaml federation path_to_folder/fedavg.yaml
where path_to_folder
is the path to the folder containing the configuration files.
Documentation
The documentation for fluke
can be found here. It contains detailed information about the package, including how to install it, how to run an experiment, and how to implement new algorithms.
Tutorials
Tutorials on how to use fluke
can be found here. In the following, you can find some quick tutorials to get started with fluke
:
Contributing
If you have suggestions for how fluke
could be improved, or want to report a bug, open an issue! We'd love all and any contributions.
For more, check out the Contributing Guide.
Authors
- Mirko Polato - Idealization, Design, Development, Testing, and Documentation
- Roberto Esposito - Testing
- Samuele Fonio - Testing
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file fluke_fl-0.0.4.tar.gz
.
File metadata
- Download URL: fluke_fl-0.0.4.tar.gz
- Upload date:
- Size: 103.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37244c6ded1f504c622abebc5573dc620e471dd996c8674c397519d5c66397a7 |
|
MD5 | a095f0d3278ea93759c59fc90e8ba1f1 |
|
BLAKE2b-256 | ac198ae29e24f53069ed31de34250da5d30b0a562c903855a74ca6795f4a986a |
File details
Details for the file fluke_fl-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: fluke_fl-0.0.4-py3-none-any.whl
- Upload date:
- Size: 111.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6d2fbdf4c809da71bccfaf7e7aa226386ce4e54a9b8d05a11238a5f8e0863eb |
|
MD5 | 1f4a652ca4752cbe3f4743ed5d65e581 |
|
BLAKE2b-256 | 80793dbca3b36c108b2e8411d8466eed63b4c8a68929ece8f8caf4659a80f52a |