Git Product home page Git Product logo

befl's Introduction

Lightweight Blockchain-Empowered Secure and Efficient Federated Edge Learning

This repository contains the code of our paper, Lightweight Blockchain-Empowered Secure and Efficient Federated Edge Learning.

Environment

The golang environment (Go 1.16). The release of the Go 1.16 can be found here, and the installation instruction can be found here.
Python 3.7 is required for the go-python library go-python3.
IPFS 0.19.0. Instruction for IPFS installation can be found at https://docs.ipfs.tech/install/command-line/#system-requirements.

Packge requirement

Package Version
pytorch 1.7.1
numpy 1.18.1
scipy 1.4.1
torchvision 0.8.2

The reuqired go packages will be automatically downloaded when run the experiment.

Data

FEMNIST: from the LEAF benchmark suite, with the relevant downloading and preprocessing instructions here. The command-line arguments for the LEAF preprocessing utility used were to generate the full-sized non-iid dataset, with minimum 15 samples/user, sample-based 80-20 train-test split were: ./preprocess.sh -s niid --sf 1.0 -k 15 -t sample --tf 0.8. The resulting training .json files files should then be copied to ../data/FEMNIST_data/train and the testing files to ../data/FEMNIST_data/test.

CIFAR10: can be downloaded here. The extracted file should be copied to ../data/CIFAR10_data/.

Hyperparameters

The hyperpearemeters about the blockchain are set in chain/variables.goใ€‚ client/variables_FL.go contains the set hyperparameters for the FL task.

Project running

First start the IPFS by running ipfs deamon, then

go run main.go

befl's People

Contributors

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