tensorflow_privacy/privacy/dp_query
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 Fixing issue #44 (imports in privacy/__init__.py). Added __init__.py to the dp_query directory for Python 2 compatibility. 2019-04-12 14:10:48 -07:00
BUILD Add quantile_adaptive_clip_sum_query which dynamically adjusts the clipping norm so a specified fraction of records per sample are clipped. 2019-05-14 13:35:29 -07:00
dp_query.py Remove set_denominator functions from DPQuery and make QueryWithLedger easier to use. 2019-06-04 10:14:32 -07:00
gaussian_query.py Remove set_denominator functions from DPQuery and make QueryWithLedger easier to use. 2019-06-04 10:14:32 -07:00
gaussian_query_test.py Extensions to DPQuery and subclasses. 2019-05-13 11:28:56 -07:00
nested_query.py Remove set_denominator functions from DPQuery and make QueryWithLedger easier to use. 2019-06-04 10:14:32 -07:00
nested_query_test.py Cleanup directory structure, add top-level imports and add normalized_query. 2019-03-25 10:21:04 -07:00
no_privacy_query.py Remove set_denominator functions from DPQuery and make QueryWithLedger easier to use. 2019-06-04 10:14:32 -07:00
no_privacy_query_test.py Extensions to DPQuery and subclasses. 2019-05-13 11:28:56 -07:00
normalized_query.py Remove set_denominator functions from DPQuery and make QueryWithLedger easier to use. 2019-06-04 10:14:32 -07:00
normalized_query_test.py Cleanup directory structure, add top-level imports and add normalized_query. 2019-03-25 10:21:04 -07:00
quantile_adaptive_clip_sum_query.py Remove set_denominator functions from DPQuery and make QueryWithLedger easier to use. 2019-06-04 10:14:32 -07:00
quantile_adaptive_clip_sum_query_test.py Remove set_denominator functions from DPQuery and make QueryWithLedger easier to use. 2019-06-04 10:14:32 -07:00
test_utils.py Cleanup directory structure, add top-level imports and add normalized_query. 2019-03-25 10:21:04 -07:00