Git Product home page Git Product logo

fedcomm's Introduction

FedComm

Experiments are produced on MNIST, CIFAR-10, and WikiText-2 datasets.

Setting up the environment

  • Install the requirements.
pip install -r requirements.txt

Data

  • Download the respective datasets and put them under 'data/' directory.

Running the experiments

  • To run the FedComm experiment:
python fedcomm.py

Setting the experiment parameters

To run the experiments in different conditions change the parameters in config.json file.

Federated Learning Parameters

  • num_users:Number of total users that have signed up for collaborating. (Default is 100).
  • frac: Fraction of users to be used for federated updates. Default is 1.0 (i.e., 100% participation).
  • epochs: Number of global training epochs. Default is 1000.
  • dataset: Default: 'mnist'. Options: 'mnist', 'cifar10', 'wiki'.

Message transmission parameters:

  • senders: Fraction of participants in the federated learning scheme that will act as senders. Default: 0.1 (i.e., 10% of the participants).
  • payload: The extension of the payload file (under payloads/ directory. Default 'txt', Options: 'txt', 'png'.
  • injection: The FL global round when the senders should start transmitting the message. Default 10.
  • stealthy: The level of stealthiness of the senders. Default 'non', Options: 'non', 'inter', 'full'.
  • run_name: A name given to the particular run. It will create a directory structure where it will store model checkpoints, extracted payloads, train accuracy and loss values.

fedcomm's People

Contributors

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