GithubHelp home page GithubHelp logo

minseok-ryu / dpfl-iadmm-classification Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 111.57 MB

Privacy-preserving algorithms for a distributed empirical risk minimization model with a multiclass logistic regression function

License: MIT License

Python 99.08% Shell 0.92%

dpfl-iadmm-classification's Introduction

Differentially Private Inexact ADMM for a Federated Learning model

In this open-source code, we implement inexact differentially private alternating direction method of multipliers (DP-IADMM) algorithms for solving a distributed empirical risk minimization problem with the multi-class logistic regression function. In specific, the following three algorithms are implemented:

  • "ObjT": DP-IADMM with a trust-region of solutions incorporated with the objective perturbation method.
  • "ObjP": DP-IADMM with a proximal function incorporated with the objective perturbation method.
  • "OutP": DP-IADMM with a proximal function incorporated with the output perturbation method.

Install and Run

git clone https://github.com/minseok-ryu/DP-IADMM-Multiclass-Logistic.git

After downloading the code, open the terminal and go to the directory where "run_1.py" exists.

  1. Do the followings:
conda create -n DPFL	
conda activate DPFL	
conda install numpy	
conda install cupy
pip install GPUInfo
pip install mlxtend

Packages cupy and GPUInfo are required for GPU computation. mlxtend is required for MNIST dataset.

  1. Run:
python run_1.py
  1. Go to "Outputs" directory to see the results

Important Note

To use GPU, change from "import numpy as np" to "import cupy as np" located in the first line of Algorithms.py, Models.py, Read.py, and Functions.py.

Acknowledgements

This material is based upon work supported by the U.S. Department of Energy, Office of Science, under contract number DE-AC02-06CH11357.

dpfl-iadmm-classification's People

Contributors

kibaekkim avatar minseok-ryu avatar

Watchers

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