Git Product home page Git Product logo

fl_flower's Introduction

Federated Learning for activity on mobile edge devices

This project is used for creating experimental environment for the simulation of the on-device federated learning process using the Flower framework. The project differentiates between training the model for two different data sets:

  1. This example tracks activity for multiple users and the goal is to classify a given user activity. Dataset used is downloaded from UC Irivine's database - HARTH. The simulation of client data generation is performed by dividing the initial dataset
  2. Second example's dataset is generated using the Arduino Nano 33 BLE Sense board and it tracks the activity of edge device:
    • collecting data (run script movement_model_dataset)
    • data formatting (run script create_csv)
    • in utils change number of classes and features to values 2 and 10 respectively
    • in first client and second one set values for labels on [0, 1]
    • in server's script number of clients is set to 2

Installation

Create virtual environment and install all needed modules:

pip3 install -r requirements.txt

Run the project

Start the server

python3 server.py

Run all clients in different terminals (id in range 1 to 4)

python3 clientsubject<id>.py

For clients in second project follow the next steps

python3 clienteven.py
python3 clientodd.py

Author

Teodora Kocic

fl_flower's People

Contributors

teodorakocic 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.