Coder Social home page Coder Social logo

sattviksahai / collaborative-learning-simulator Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 160 KB

A python library to simulate Collaborative Deep Learning. It provides the flexibility to simulate various network architectures, Collaborative Learning Stratergies, and privacy invasion attacks. Currently built for Pytorch, this library is a work in progress.

License: MIT License

Jupyter Notebook 96.94% Python 3.06%
deep-learning federated-learning collaborative-learning pytorch-implementation simulator

collaborative-learning-simulator's Introduction

Collaborative-Learning-Simulator

A python library to simulate Collaborative Deep Learning. It provides the flexibility to simulate various network architectures, Collaborative Learning Stratergies, and privacy invasion attacks. Currently built for Pytorch, this library is a work in progress.

Pre-requisites

It is recommended to install the simulator in a virtual environment, and install the dependencies in this environment. In a Linux system, this can be done using terminal as follows:

python3 -m pip install --user virtualenv
python3 -m venv my_env
source my_env/bin/activate
pip install -r requirements.txt

Installation

pip install cl_simulator

Example Implementations

The repository contains two example implementation.

Federated Averaging:

Implemented in the "federated_averaging.ipynb" file, this simulates a two part setting where we train an image based gender classifier.

Reference Script:

Implemented in the "reference_training_script.ipynb" file, this demonstrates training a gender classifer on a single system.

License

MIT

collaborative-learning-simulator's People

Contributors

sattviksahai avatar

Stargazers

 avatar

Watchers

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