This directory contains data model, code to run federated code for healthcare, and clients and server code.
Start by cloning the project
$ git clone --depth=1 This will create a new directory ehc_prototype with subfolders and files.
Run the following command to setup requirements:
cd ehc_prototype
pip install requirements.txtNote the above requires pip already installed.
Install mysql on preferred or using OS
Connet to mysql database, and then run create a database first.
ehc_prototype;
USE ehc_prototype;
source /ehc_prototype/sql/ddl.sqlThe data it uses is very sensitive, and cannot be publicly shared. however, for you ta work with real data, you can put all data the data/all_data folder. Each along with image files, each image file should be named as filename_label.jpg where label indicates the classified label of the image. the model will automatically extract this information.
Moreover, for federated model, split the data as follows:
Distribute the whole data in >=60 and <=40 splits in data/cleint_1 and data_cleint_2 folders respectively You can play with how you want to order your data to run your models. We chose the ones presented in paper.
Have a look and run the method in federated/requests/request.py file
python3 federed/server.pyBefore each run in a terminal, set the folder in the client.py and then run
python3 federated/client.pypython3 federated/client.pyUse the simple.py in the simple folder.
python3 simple/simple.py