opendp / smartnoise-samples

Code samples and documentation for SmartNoise differential privacy tools
MIT License
132 stars 49 forks source link

Python 2.7 support #51

Open simra opened 4 years ago

simra commented 4 years ago

Hi, a small suggestion to add a line to the DPSU spark implementation, to support down-level python: from __future__ import division

https://github.com/opendifferentialprivacy/whitenoise-samples/blob/332d7ef7c4fcf811995f9e6a3aab8d8f4c298a88/data/policy_laplace.py#L1

Without the change, initializing PolicyLaplace incorrectly applies integer division in a few spots.

raprasad commented 3 years ago

Thanks*, @simra (Much delayed)

joshua-oss commented 3 years ago

Completely missed this. Great suggestion; I have patched it in #95