Skip to content

Sample Keras implementation of the Federated Learning (FL) for experimental research simulations.

Notifications You must be signed in to change notification settings

SadmanSakib93/Federated-Learning-Keras

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Federated Learning Keras

  • Replace your own dataset file as the dataset.csv.
  • Note that, the sample dataset.csv file I used, it has its labels (Y) in the first column named as "label". The 2nd to nth columns are the features (X). You might want to change the code according to your dataset structure to ensure proper feature and label handling

Following is a sample dataset structure that the program expects: image

  • So, basically, the first column is your class label (defined as "label"). The rest of the columns are the independent features of the dataset. For example, in this picture, there are 20 features denoted as A1 to A20. Note that, all the features are numerical features in the CSV file. If you have some categorical features, you have to perform One hot encoding/Label encoding to make them numbers, and then after you can run the program! Hope this helps.
  • A sample research publication where similar program was used: https://ieeexplore.ieee.org/abstract/document/9500351

This is a sample Keras implementation of the Federated Learning (FL) for experimental research simulations and might need further modifications to implement it in real-life scenarios.