Skip to main content

Python Open-source package for simulating federated learning and differential privacy

Project description

MEDfl: Federated Learning and Differential Privacy Simulation Tool for Tabular Data

Python Versions Build Status

GitHub contributors License: MIT

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 MEDflpackage 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

MEDfl-2.0.4.dev2.tar.gz (31.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

MEDfl-2.0.4.dev2-py3-none-any.whl (59.2 kB view details)

Uploaded Python 3

File details

Details for the file MEDfl-2.0.4.dev2.tar.gz.

File metadata

  • Download URL: MEDfl-2.0.4.dev2.tar.gz
  • Upload date:
  • Size: 31.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for MEDfl-2.0.4.dev2.tar.gz
Algorithm Hash digest
SHA256 6f8394adc71b349da6090e8cd23494a231747828707d546a1f90ca5103ecf919
MD5 c4d78b0ae20f83303c35c991c97744b5
BLAKE2b-256 6d2eefc0e9e5b1ae57eaa5ffa20e4c5e3b42817a980b68b591859f2dcb61cb8c

See more details on using hashes here.

File details

Details for the file MEDfl-2.0.4.dev2-py3-none-any.whl.

File metadata

  • Download URL: MEDfl-2.0.4.dev2-py3-none-any.whl
  • Upload date:
  • Size: 59.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for MEDfl-2.0.4.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 fafbfdfbd05de228e058fcb27e41e7d82ca9008423d6ba05037d42b82b0ba51a
MD5 82a5a8913bdd8e3a7418abf227236509
BLAKE2b-256 c438f88ee304cc7e2366baab037a38f7361d00396bc75de88cfbde77d998f327

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page