tensorflow_privacy/privacy
Galen Andrew d5dcfec745 Remove set_denominator functions from DPQuery and make QueryWithLedger easier to use.
set_denominator was added so that the batch size doesn't need to be specified before constructing the optimizer, but it breaks the DPQuery abstraction. Now the optimizer uses a GaussianSumQuery instead of GaussianAverageQuery, and normalization by batch size is done inside the optimizer.

Also instead of creating all DPQueries with a PrivacyLedger and then wrapping with QueryWithLedger, it is now sufficient to create the queries with no ledger and QueryWithLedger will construct the ledger and pass it to all inner queries.

PiperOrigin-RevId: 251462353
2019-06-04 10:14:32 -07:00
..
analysis Remove set_denominator functions from DPQuery and make QueryWithLedger easier to use. 2019-06-04 10:14:32 -07:00
dp_query Remove set_denominator functions from DPQuery and make QueryWithLedger easier to use. 2019-06-04 10:14:32 -07:00
optimizers Remove set_denominator functions from DPQuery and make QueryWithLedger easier to use. 2019-06-04 10:14:32 -07:00
__init__.py Remove set_denominator functions from DPQuery and make QueryWithLedger easier to use. 2019-06-04 10:14:32 -07:00
BUILD Add quantile_adaptive_clip_sum_query to privacy package. 2019-05-16 15:56:16 -07:00