Git Product home page Git Product logo

federated-learning-keras's Introduction

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.

federated-learning-keras's People

Contributors

sadmansakib93 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

moin199 zihad18

federated-learning-keras's Issues

Questions about code

Hello, after reading your code, I have a question, why do you need to store the model again at the end, the previous for iterationNo in range(1,numOfIterations+1) loop has been updated and stored deepModel, I think here The stored model is the model of the above history retraining model. This model has nothing to do with the above for iterationNo in range(1, numOfIterations+1) loop? May I ask if my understanding is wrong, thank you.
qs drawio

About Dataset

Hello, thank you for providing such a good code, can you provide an example of a dataset(CSV)?
This will give me a better understanding of the code, thank you.

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.