Code Monkey home page Code Monkey logo

mmalekzadeh / privacy-preserving-bandits Goto Github PK

View Code? Open in Web Editor NEW
22.0 1.0 7.0 36.67 MB

Privacy-Preserving Bandits (MLSys'20)

Home Page: https://proceedings.mlsys.org/paper/2020/hash/42a0e188f5033bc65bf8d78622277c4e-Abstract.html

License: MIT License

Python 8.21% Jupyter Notebook 91.79%
bandit-algorithms differential-privacy machine-learning online-machine-learning reinforcement-learning contextual-bandits privacy-preserving-machine-learning privacy-preserving-bandits criteo-dataset federated-learning

privacy-preserving-bandits's Introduction

Privacy-Preserving-Bandits (P2B)

Codes and Data accompanying our paper "Privacy-Preserving Bandits"

@inproceedings{malekzadeh2020privacy,
	title        = {Privacy-Preserving Bandits},
	author       = {Malekzadeh, Mohammad and Athanasakis, Dimitrios and Haddadi, Hamed and Livshits, Benjamin},
	booktitle    = {Proceedings of Machine Learning and Systems (MLSys '20)},
	url = {https://proceedings.mlsys.org/paper/2020/file/42a0e188f5033bc65bf8d78622277c4e-Paper.pdf},
	volume = {2},
	pages = {350--362},
	year = {2020}
}

Public DOI: 10.5281/zenodo.3685952

Note:

  • To reproduce the results of the paper, you just need to run codes in the experiments folder.
  • Multi-Lable datasets will be automatically downloaded for the firs time.
  • For criteo dataset, in the first time, use the script experiments/Criteo/criteo_dataset/create_datasets.ipynb

(A) All you need to begin with:

1: Run 1_build_an_encoder.ipynb.

2: Run 2_a_synthetic_exp.ipynb.

(B) For Criteo dataset:

In the directory experiments/Criteo/, we have already run this file for the experiment we have reported in Figure 7 and provided dataset by processing nrows=1000000000, that uses 1 billion rows of the original dataset.

I If one desires to make a dataset of another nrows, for the first time, the script create_datasets.ipynb should be used. You should first set this parameter (number of rows) in the create_datasets.ipynb, build the dataset, and then run the Criteo experiment. Please see create_datasets.ipynb for more dtail.

(C) Info:

You may need to install packages that are listed in the requirements.txt file.

% pip install -r requirements.txt 

Specifically, these libraries:

%pip install iteround
%pip install pairing 
%pip install scikit-multilearn
%pip install arff
%pip install category_encoders
%pip install matplotlib
%pip install tensorflow
%pip install keras

privacy-preserving-bandits's People

Contributors

mmalekzadeh avatar

Stargazers

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