GithubHelp home page GithubHelp logo

adrienroyer / smartnoise-samples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from opendp/smartnoise-samples

0.0 0.0 0.0 209.35 MB

Code samples and documentation for SmartNoise differential privacy tools

License: MIT License

Python 0.34% Dockerfile 0.02% Makefile 0.01% Shell 0.01% TSQL 0.01% Jupyter Notebook 95.51% HTML 4.11% R 0.01%

smartnoise-samples's Introduction

License: MIT Python

SmartNoise Samples: Differential Privacy Examples, Notebooks and Documentation

Please see the accompanying SmartNoise Documentation, SmartNoise SDK repository and SmartNoise Core repository for this system.

Differential privacy is the gold standard definition of privacy protection. The SmartNoise project, in collaboration with OpenDP, aims to connect theoretical solutions from the academic community with the practical lessons learned from real-world deployments, to make differential privacy broadly accessible to future deployments. Specifically, we provide several basic building blocks that can be used by people involved with sensitive data, with implementations based on vetted and mature differential privacy research. In this Samples repository we provide example code and notebooks to:

  • demonstrate the use of the system platform,
  • teach the properties of differential privacy,
  • highlight some of the nuances of the system implementation.

Sample Notebooks

Relative error distributions Release box plots Histogram releases Utility simulations Bias simulations

This repository includes several sets of sample Python notebooks that demonstrate SmartNoise functionality:

  • Sample Analysis Notebooks - In addition to a brief tutorial, there are examples of histograms, differentially private covariance, how dataset size and privacy-loss parameter selection impact utility, and working with unknown dataset sizes.
  • Attack Notebooks - Walk-throughs of how SmartNoise mitigates basic attacks as well as a database reconstruction attack.
  • SQL Data Access - Code examples and notebooks show how to issue SQL queries against CSV files, database engines, and Spark clusters.
  • SmartNoise Whitepaper Demo Notebooks - Based on the whitepaper titled Microsoft SmartNoise Differential Privacy Machine Learning Case Studies these notebooks include a demonstration of how to perform supervised machine learning with differential privacy and an example of creating a synthetic dataset with high utility for machine learning as well as examples of creating DP releases with histograms and protecting against a reidentification attack.

API Reference Documentation

Core Library Reference: The Core Library implements the runtime validator and execution engine. Documentation is available for:

Communication

Releases and Contributing

Please let us know if you encounter a bug by creating an issue.

We appreciate all contributions. We welcome pull requests with bug-fixes without prior discussion.

If you plan to contribute new features, utility functions or extensions to the samples repository, please first open an issue and discuss the feature with us.

  • Sending a PR without discussion might end up resulting in a rejected PR, because we may be taking the examples in a different direction than you might be aware of.

Installation

  • After cloning the repository and setting up virtual environment, install requirements.
git clone https://github.com/opendifferentialprivacy/smartnoise-samples.git && cd smartnoise-samples
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
# if running locally
pip install jupyterlab
# launch locally
jupyter-lab

smartnoise-samples's People

Contributors

andreaskopp avatar ankit-oss avatar anthager avatar ctcovington avatar dylanw-oss avatar ecowan avatar eedeleon avatar huwd avatar joshua-oss avatar lurosenb avatar marcpare avatar mayanapereira avatar mikephelan avatar nonstoptimm avatar pdurbin avatar raprasad avatar shoeboxam avatar slbird avatar tercer 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.