Giter Site home page Giter Site logo

gaurav16gupta / optimal_dp_linear_regression Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yuxiangw/optimal_dp_linear_regression

0.0 1.0 0.0 37.64 MB

This repo contains the code to reproduce the experimental results of https://arxiv.org/abs/1803.02596

MATLAB 91.76% Shell 8.24%

optimal_dp_linear_regression's Introduction

Optimal and adaptive differentially private linear regression

This package contains the Matlab code used to reproduce the experimental results of the following paper:

  • Wang, Yu-Xiang. "Revisiting differentially private linear regression: optimal and adaptive prediction & estimation in unbounded domain." in Uncertainties in Artificial Intelligence (2018).

Arxiv https://arxiv.org/abs/1803.02596

  • TL;DR: AdaOPS and AdaSSP can automatically adapts to structures of the data set while preserving (eps,delta)-Differential Privacy.

bibtex entry:

@inproceedings{wang2018revisiting,
  title={Revisiting differentially private linear regression: optimal and adaptive prediction \& estimation in unbounded domain},
  author={Wang, Yu-Xiang},
  booktitle={Uncertainty in Artificial Intelligence (UAI-18)},
  year={2018}
}

Sample outputs:

Prediction on the `bike' data set Estimation of linear Gaussian model parameters

Left: Statistical learning: Varying \eps, \delta = 1e-6. Right: Statistical estimation: \eps = 1.0, \delta = 1e-6

Where are the 36 data sets used in this repository coming from?

  • Original data source

UCI Machine Learning Repository

  • Actual data source

Zichao Yang: https://github.com/zcyang

  • Yang, Zichao, Andrew Wilson, Alex Smola, and Le Song. "A la carte–learning fast kernels." In Artificial Intelligence and Statistics, pp. 1098-1106. 2015.

How to use the code?

  1. (Optionally) get the four somewhat large data sets (all other 32 data sets are stored in the pre-processed format)
cd data
chmod 755 wget_largedata.sh
./wget_largedata.sh

You might need to do some further processing to those four data sets to ensure all fields are numerical, there are no headers and the last column is the label to predict.

  1. Process the data sets into *.mat files. In MATLAB:
cd data
generatedata_all

This will process the datasets in standard ways.

  1. Run UCI data experiments

Run code/exp_uci.m

  1. Run synthetic data experiments

Run code/exp_simulation.m

optimal_dp_linear_regression's People

Contributors

yuxiangw avatar

Watchers

James Cloos 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.