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/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 private AI research community.

6. Authors

7. Statement

This package is part of https://github.com/medomics, a package providing research utility tools for developing precision medicine applications.

MIT License

Copyright (C) 2022 MEDomics consortium

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

MEDfl-0.1.0.tar.gz (30.6 MB view details)

Uploaded Source

Built Distributions

Medfl-0.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

MEDfl-0.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file MEDfl-0.1.0.tar.gz.

File metadata

  • Download URL: MEDfl-0.1.0.tar.gz
  • Upload date:
  • Size: 30.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.10

File hashes

Hashes for MEDfl-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9192ec8c8105e26fa3b6ca3c25f39a02758d23222143d07e6c238881054cdb60
MD5 1e0bd73aebf5128a6ad1f7c0fa1851fc
BLAKE2b-256 9e09c0f5b49aea83952c8f57c74d7fff3d24f17a8985f9310e4209d026b6130e

See more details on using hashes here.

File details

Details for the file Medfl-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: Medfl-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.10

File hashes

Hashes for Medfl-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d247869e58972787bfc0cabe68aa9864e4af66bb93037363664ba991fe0fad8
MD5 febabc65e45972949a7192aadd69f9c9
BLAKE2b-256 3222596b61da29165b3091aad7952027a10b637f7f70464ba97d94eea8bcb310

See more details on using hashes here.

File details

Details for the file MEDfl-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: MEDfl-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.10

File hashes

Hashes for MEDfl-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31cab25ab4a1cdf8ac7a5d618adca7a53ccf3e61061a1b4f50b7f636f48cdb65
MD5 98d8a6e54dfee4809e72b7466220d6db
BLAKE2b-256 e4b3b0681b717139e911cb2964fd45086cb342e10e6442be584dbe878c44f310

See more details on using hashes here.

Supported by

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