smartnoise-samples icon indicating copy to clipboard operation
smartnoise-samples copied to clipboard

Python 2.7 support

Open simra opened this issue 4 years ago • 2 comments

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.

simra avatar May 29 '20 00:05 simra

Thanks*, @simra (Much delayed)

raprasad avatar Apr 14 '21 16:04 raprasad

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

joshua-oss avatar Jun 08 '21 18:06 joshua-oss