OpenMined / PipelineDP

PipelineDP is a Python framework for applying differentially private aggregations to large datasets using batch processing systems such as Apache Spark, Apache Beam, and more.
https://pipelinedp.io/
Apache License 2.0
272 stars 77 forks source link

Fix linf sensitivity computation in DP sum tests of dp_compute_test #384

Closed monsieurmuffin closed 1 year ago

monsieurmuffin commented 1 year ago

dp_compute_test.test_compute_dp_sum seemed to be using a wrong formula to compute lInf sensitivity. The result of the formula was correct by chance because of the combination of values. This PR fixes the formula.