Python Open-source package for simulating federated learning and differential privacy
Project description
MEDfl: Federated Learning and Differential Privacy Simulation Tool for Tabular Data
Table of Contents
1. Introduction
This Python package is an open-source tool designed for simulating federated learning and incorporating differential privacy. It empowers researchers and developers to effortlessly create, execute, and assess federated learning pipelines while seamlessly working with various tabular datasets.
2. Installation
Python installation
The MEDfl package requires python 3.9 or more to be run. If you don't have it installed on your machine, check out the following link Python. It also requires MySQL database.
Package installation
For now, you can install the MEDfl
package as:
git clone https://github.com/MEDomics-UdeS/MEDfl.git
cd MEDfl
pip install -e .
MySQL DB configuration
MEDfl requires a MySQL DB connection, and this is in order to allow users to work with their own tabular datasets, we have created a bash script to install and configure A MySQL DB with phpmyadmin monitoring system, run the following command then change your credential on the MEDfl/scripts/base.py and MEDfl/scripts/db_config.ini files
sudo bash MEDfl/scripts/setup_mysql.sh
Project Base URL Update
Please ensure to modify the base_url
parameter in the MEDfl/global_params.yaml
file. The base_url
represents the path to the MEDfl project on your local machine. Update this value accordingly.
3. Documentation
We used sphinx to create the documentation for this project. you can generate and host it locally by compiling the documentation source code using:
cd docs
make clean
make html
Then open it locally using:
cd _build/html
python -m http.server
4. Getting started
We have created a complete tutorial for the different functionalities of the package. It can be found here: Tutorial.
5. Acknowledgment
MEDfl is an open-source package that welcomes any contribution and feedback. We wish that this package could serve the growing research community in federated learning for health.
6. Authors
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 MEDfl-0.2.1.tar.gz
.
File metadata
- Download URL: MEDfl-0.2.1.tar.gz
- Upload date:
- Size: 30.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ec056a924d7641cc5552429277bf0c1a286e16894e2a9defa5452bc88805f26 |
|
MD5 | 03d69a6db07272ab2cf051888a0957a2 |
|
BLAKE2b-256 | 6f836d6d765abc34de88c53be5ab72930379c6e4ef4c6ce8ff950e522cea40c9 |
Provenance
File details
Details for the file MEDfl-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: MEDfl-0.2.1-py3-none-any.whl
- Upload date:
- Size: 55.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72cdc755dfdf9551a76590227ad8bd2773141b87d93eb85cad9bd4afd79176fb |
|
MD5 | bfd27ee7b0d2f0f838a563fa76691981 |
|
BLAKE2b-256 | 0310b8b1074e83214d11210ec3b8a44b6a1e6a069970b0efe43ef433c4b3127f |