Giter Club home page Giter Club logo

l46's Introduction

L46 project

This is the codebase for the L46 project Personalized Federated Learning in Real-world Healthcare Applications across Different Frameworks.

We introduce how to set up the environment and download the datasets here, and details related to the two frameworks will be introduced in the respective folder. The documentation of planning and decision making through the project is in ./schedule.md.

Dataset

Environment

Set up the environment for using the dataset:

cd FLamby
make install
conda activate flamby

If the make command does not work ((like in Windows, or as in acs-gpu, ended up with the following error)

/bin/sh: 2: /opt/conda/envs/flamby/bin/pip: not found
make: *** [Makefile:8: install] Error 127

Try this instead:

cd FLamby
conda env create -f environment.yml
conda activate flamby
pip install -e .[all_extra]

In HPC we also need to run the followinig before conda activate

conda init bash
source ~/.bash_profile

Another useful command to debug with HPC environment when encountering error with PyTorch:

pip3 install torch==1.13.0+cu116 torchvision==0.14.0+cu116 -f https://download.pytorch.org/whl/torch_stable.html

Downloading

The command line to download the datasets:

Fed-Heart-Disease

cd FLamby/flamby/datasets/fed_heart_disease/dataset_creation_scripts
python download.py --output-folder ./heart_disease_dataset

Fed-IXI

cd FLamby/flamby/datasets/fed_ixi/dataset_creation_scripts
python download.py -o IXI-Dataset

Fed-ISIC2019

cd FLamby/flamby/datasets/fed_isic2019/dataset_creation_scripts
python download_isic.py --output-folder ./isic2019_dataset
python resize_images.py

MsPFL implementation

The main function for comparing the strategies using MsPFL framework is in MsPFL/my_main.py. Please refer to ./MsPFLfolder/README.md for help to execute and navigate the code in detail. The experimental results of the five strategies (four in the report + metaFed) is also included.

Flwr implementation

We further provide specific instructions in ./Flowerfolder/README.md. Experimental results are shown in the table within the folder.

l46's People

Contributors

dannymcy avatar evelyn0414 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.