opendp / smartnoise-core-python

Python language bindings for smartnoise-core.
MIT License
75 stars 11 forks source link

default floating-point-protection to True #52

Closed Shoeboxam closed 4 years ago

Shoeboxam commented 4 years ago

This will mean the laplace and gaussian mechanisms will be disabled, unless you pass sn.Analysis(protect_floating_point=False). In cases where we have float-valued queries, we default to the snapping mechanism. In cases where we have integer-valued queries, we default to the simple geometric mechanism.

This will reduce accuracy somewhat for all float-valued queries. The system will also throw errors when you explicitly try to use the laplace or gaussian mechanisms, or when you try to use the snapping mechanism on integer-valued queries (until you disable protections).