GithubHelp home page GithubHelp logo

datafl's Introduction

Online Federated Learning on Distributed Unknown Data Using UAVs

This repo is the pytorch implementation of paper "Online Federated Learning on Distributed Unknown Data Using UAVs".

Prerequisites

nvidia-smi	# NVIDIA GeForce RTX 4090
nvcc -V 	# cuda-12.1
python -V	# Python 3.10.10
pip list	# torch 2.0.0+cu118, torchvision 0.15.1+cu118, GPy 1.10.0

The estimation of the reward function requires the GPy module. (https://sheffieldml.github.io/GPy/)

Preparing dataset and model

You can specify the datasets, models and other hyperparameters in ./sim/utils/options.py. For any new dataset, you first need to download the dataset and run ./sim/data/partition.py to construct a distributed dataset. To use a specific model on a new dataset, you can add settings in the ./sim/model folder and modify ./sim/model/build_models.py to add the model. Currently used models include ResNet-18, CNNs, AlexNet and so on.

OFL-UD^2

To execute the command, just run python ./OFL.py, and you will get the change of test accuracy during training. If you need to visualize the output, you can find the corresponding csv file in the ./save folder and plot it. All baselines are stored in the ./baselines folder. The parameters in the experiment are placed in options.py, and you can use the default parameters or modify them at runtime by specifying methods such as -d cifar10.

datafl's People

Contributors

zxc-phy 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.