tensorflow_privacy/privacy/optimizers
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
..
__init__.py Project import generated by Copybara. 2018-12-18 15:44:04 -08:00
dp_optimizer.py Remove set_denominator functions from DPQuery and make QueryWithLedger easier to use. 2019-06-04 10:14:32 -07:00
dp_optimizer_eager_test.py Remove set_denominator functions from DPQuery and make QueryWithLedger easier to use. 2019-06-04 10:14:32 -07:00
dp_optimizer_test.py Remove set_denominator functions from DPQuery and make QueryWithLedger easier to use. 2019-06-04 10:14:32 -07:00