GithubHelp home page GithubHelp logo

saadiabadi / cifer_example Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 51.09 MB

this repository is for freezing layers experiment using cifer

License: GNU General Public License v3.0

Dockerfile 4.76% Python 95.24%

cifer_example's Introduction

FEDn implementation of cifar10 with keras

Setting up a client

Initiate your federation

This command loads and partitions the dataset, generates a docker-compose.yaml for your choice of numbers of clients and initiates a seed model to start from: (Replace: {NR_OF_CLIENTS} with the number of clients you want to build you federation with)

pip install -r init_requirements.txt
python init_federation.py {NR_OF_CLIENTS}

Creating a compute package

tar -czvf package/kerascifar.tar.gz client

Start the client

The easiest way to start clients for quick testing is by using Docker. We provide a docker-compose template for convenience. First, edit 'fedn-network.yaml' to provide information about the reducer endpoint. Then run following command in project directory: (Replace {NR_OF_CLIENTS} with the number of clients you selected)

docker-compose -f docker-compose-{NR_OF_CLIENTS}clients.yaml up 

Note that this assumes that a FEDn network is running with "keras" helper, which is identified in "config/settings-reducer.yaml" (see separate deployment instructions). The file 'docker-compose.dev.yaml' is for testing againts a local pseudo-distributed FEDn network. Use 'docker-compose.yaml' if you are connecting against a reducer part of a distributed setup and provide a 'extra_hosts' file.

cifer_example's People

Contributors

saadiabadi avatar

Watchers

 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.