GithubHelp home page GithubHelp logo

amanpriyanshu / dp-hyperparamtuning Goto Github PK

View Code? Open in Web Editor NEW
24.0 2.0 5.0 91 KB

DP-HyperparamTuning offers an array of tools for fast and easy hypertuning of various hyperparameters for the DP-SGD algorithm.

License: MIT License

Python 17.52% Jupyter Notebook 82.48%
reinforcement-learning pytorch automl hyperparameter-optimization machine-learning

dp-hyperparamtuning's Introduction

DP-HyperparamTuning

The offical repository for all algorithms and code for the Efficient Hyperparameter Optimization for Differentially Private Deep Learning accepted at PPML Workshop @ ACM-CCS'2021.

A streamlined and basic implementation for all modules presented is available at:

Note: Colab Demo for the same

Implementation:

Imports:

from DP_HyperparamTuning.experiment.train_single_model import Experiment
from DP_HyperparamTuning.algorithms.bayesian_optimization import Bayesian
from DP_HyperparamTuning.algorithms.grid_search_algorithm import GridSearch
from DP_HyperparamTuning.algorithms.evolutionary_optimization import EvolutionaryOptimization
from DP_HyperparamTuning.algorithms.reinforcement_learning_optimization import RLOptimization

Running Given Modules:

e = Experiment(get_model, criterion, train_dataset, test_dataset)
b = Bayesian(e.run_experiment, calculate_reward, num_limit, search_space_nm=search_space_nm, search_space_lr=search_space_nm)

Where, get_model, calculate_reward are functions, and criterion and train_dataset, test_dataset which are <class 'torch.nn.modules.loss.BCELoss'> and torch.utils.data.Dataset respectively.

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change. We also make available a CONTRIBUTING.md and CODE_OF_CONDUCT.md for easy communication and quick issue resolution.

Paper Citation:

@misc{priyanshu2021efficient,
      title={Efficient Hyperparameter Optimization for Differentially Private Deep Learning}, 
      author={Aman Priyanshu and Rakshit Naidu and Fatemehsadat Mireshghallah and Mohammad Malekzadeh},
      year={2021},
      eprint={2108.03888},
      archivePrefix={arXiv},
      primaryClass={cs.LG}
}

dp-hyperparamtuning's People

Stargazers

 avatar Aslan avatar Hideaki Takahashi avatar Alka Ranjan avatar Shuqi Ke avatar  avatar Rakshit Naidu avatar Jonathas avatar  avatar  avatar  avatar  avatar Mupupup avatar Aman Priyanshu avatar zxchen avatar  avatar Sai Rohith avatar  avatar Pranshu Bahadur avatar Yu Zheng avatar Sina Sajadmanesh avatar Chenhui Zhang avatar Rakshit Naidu avatar Mohammad Malekzadeh avatar

Watchers

James Cloos avatar Aman Priyanshu avatar

dp-hyperparamtuning's Issues

Model architecture evaluated in the paper

I checked your source code closely and found there is a toy model given in your demo.

I want to reproduce your paper's results. Can you share me the model and search space you used to evaluate in the paper?
It would be very nice if you can provide the script used in the paper directly.

Thanks.

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.