Giter Club home page Giter Club logo

fedaws_reproduce's Introduction

Reimplementation of FedAWS

This is a reimplementation of FedAWS (Federated Learning with Only Positive Labels, ICML 2020) in PyTorch. The reimplementation algorithm comes from FedRepo. Basically, I just modified the code under feddata.py to make sure each client holds only positive label, and I also implement the loss function implemented in FedFace, which also uses the FedAWS algorithm.

However, the performance of this reimplementation is pretty bad. It can only achieve at most 17% accuracy on cifar-10 dataset. I try to change the hyperparameters, but it doesn't work. I think the reason is that the this code doesn't implement the the learning rate multiplier of the spreadout loss λ in the FedAWS algorithm, making the class embeddings are not spreadout. But I don't know how to implement it. If you have any idea, please let me know. Thanks. You can reach me by email: [email protected]. I would love to discuss this algorithm and anything related to FL with you.

Running Tips

Just use python train_lab.py then you can run FedAWS under cifar-10 dataset. You can change hyperparameters in train_lab.py.

Personal Homepage

Datasets

Only cifar-10 is on this repo. But you can also use cifar-100 and FaMNIST datasets after you download them.

Acknowledgement

This repo is based on FedRepo. Thanks for the author's great work.

fedaws_reproduce's People

Contributors

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