Commit graph

541 commits

Author SHA1 Message Date
Galen Andrew
2f51adac89 Allow exact denominator for below estimate fraction used by quantile estimator.
Also:
1) Check that records for quantile estimator query are scalars.
2) Add tests of quantile estimator with noise.
3) Add privacy ledger to no-privacy queries.
PiperOrigin-RevId: 320633937
2020-07-10 10:56:06 -07:00
Galen Andrew
d1e2cc1930 Add NestedSumQuery for nested queries with sum aggregation.
PiperOrigin-RevId: 320303703
2020-07-08 18:05:04 -07:00
Timon Van Overveldt
c948e2fe7c Automated rollback of commit 3c2fbb2f63
PiperOrigin-RevId: 318110878
2020-06-24 12:00:46 -07:00
Galen Andrew
3c2fbb2f63 Add a version number to TF Privacy package.
PiperOrigin-RevId: 318096109
2020-06-24 10:50:48 -07:00
A. Unique TensorFlower
4b6a60dfdb Mention codelab in the README file.
PiperOrigin-RevId: 318069426
2020-06-24 08:35:01 -07:00
A. Unique TensorFlower
e38c351e8d Small fix in output of run_all_attack_summary
PiperOrigin-RevId: 318064829
2020-06-24 08:05:28 -07:00
A. Unique TensorFlower
06765f69f0 Minor documentation improvements.
PiperOrigin-RevId: 318063707
2020-06-24 07:57:52 -07:00
A. Unique TensorFlower
3658ef5dbc Updates to the membership inference codelab.
PiperOrigin-RevId: 318061869
2020-06-24 07:44:45 -07:00
A. Unique TensorFlower
18fe9eb3aa Updates to the codelab.
PiperOrigin-RevId: 318054616
2020-06-24 06:40:49 -07:00
A. Unique TensorFlower
74bd89d754 Updates to the codelab.
PiperOrigin-RevId: 318051333
2020-06-24 06:13:20 -07:00
A. Unique TensorFlower
c01e7b71ab Drop an old example of usage of membership infererence attack.
PiperOrigin-RevId: 318051280
2020-06-24 06:12:49 -07:00
A. Unique TensorFlower
e40a35f9c0 Updates to the membership inference codelab.
PiperOrigin-RevId: 318049409
2020-06-24 05:57:39 -07:00
A. Unique TensorFlower
c07e87d0b5 Adds an end-to-end codelab that trains a model and evaluates it for privacy risks.
PiperOrigin-RevId: 318032025
2020-06-24 03:00:24 -07:00
A. Unique TensorFlower
88dd8771bf Open sourcing membership inference attack.
PiperOrigin-RevId: 317958055
2020-06-23 16:12:08 -07:00
A. Unique TensorFlower
1fb9b80d90 Internal refactor
PiperOrigin-RevId: 317955791
2020-06-23 16:07:05 -07:00
Galen Andrew
8efc44b395 Remove initial_sample_state from GaussianSumQuery. It is the same in the base class.
PiperOrigin-RevId: 315303883
2020-06-08 10:34:09 -07:00
Galen Andrew
cec011e2a7 Refactor quantile estimation logic from QuantileAdaptiveClipSumQuery so it can be used for other purposes.
PiperOrigin-RevId: 315297665
2020-06-08 10:07:01 -07:00
Steve Chien
261ab4f28e Change another copyright year for internal test.
PiperOrigin-RevId: 315032489
2020-06-05 18:38:26 -07:00
Steve Chien
35c4b4678e Update copyright year as part of internal test.
PiperOrigin-RevId: 315027483
2020-06-05 18:36:03 -07:00
A. Unique TensorFlower
da9fb28b37 Expose differentially private RMSPropOptimizer.
PiperOrigin-RevId: 311072544
2020-05-12 00:09:29 -07:00
Steve Chien
10335f6177 Refactor MNIST tutorials and create new TPU tutorial:
1. Move common code to new file mnist_dpsgd_tutorial_common.py.
2. Move epsilon computation function out of binary into its own library.
3. Create new TPU tutorial.

PiperOrigin-RevId: 310409308
2020-05-07 12:05:50 -07:00
Steve Chien
164a57546a Update version to 0.3.0.
PiperOrigin-RevId: 309496629
2020-05-01 16:38:32 -07:00
A. Unique TensorFlower
319bf81bb1 Setting correct argument in super() call in DPOptimizerClass.
PiperOrigin-RevId: 308776729
2020-04-28 00:37:59 -07:00
A. Unique TensorFlower
9259ccb3d8 Do not record gradient_tape on gradient calculation.
PiperOrigin-RevId: 308772699
2020-04-27 23:57:23 -07:00
Steve Chien
5bc76d2e13 Update README with note about TensorFlow 2.x.
PiperOrigin-RevId: 308322055
2020-04-24 14:09:08 -07:00
Keith Rush
463868e796 Relaxes dtype assumption in Gaussian DP sum query.
PiperOrigin-RevId: 307846823
2020-04-22 10:37:01 -07:00
A. Unique TensorFlower
c5c807807f Add assert that the training is private.
In Keras training in TF 2.0+, compute_gradients() is not called but apply_gradients() is called. W/o calling compute_gradients() dp gradient is not computed, and a normal gradient is used.

PiperOrigin-RevId: 307822742
2020-04-22 08:35:41 -07:00
A. Unique TensorFlower
f7b4a30120 Merge pull request #89 from woodyx218:GDPrivacy
PiperOrigin-RevId: 307695867
2020-04-21 15:48:54 -07:00
Steve Chien
264820cb3f Automated rollback of changelist 306513264
PiperOrigin-RevId: 307694393
2020-04-21 15:38:12 -07:00
A. Unique TensorFlower
9627cc0ed8 COPYBARA_INTEGRATE_REVIEW=https://github.com/tensorflow/privacy/pull/89 from woodyx218:GDPrivacy d06340e1cf
PiperOrigin-RevId: 306534693
2020-04-15 08:31:10 -07:00
Mark Daoust
ca25bde1f8 Remove %tensorflow_version and from __future__
PiperOrigin-RevId: 304645574
2020-04-03 10:36:16 -07:00
Steve Chien
7647c54a27 Minor fix regarding tf.compat.v1 in mnist_dpsgd_tutorial_vectorized.
PiperOrigin-RevId: 303379200
2020-03-27 12:07:57 -07:00
Shuang Song
0c2747462f Internal change.
PiperOrigin-RevId: 302557220
2020-03-23 17:41:25 -07:00
A. Unique TensorFlower
2301931725 Fix issue with importing tensorflow.compat.v1.
PiperOrigin-RevId: 300175680
2020-03-10 14:16:46 -07:00
A. Unique TensorFlower
6541960e79 Automated refactoring to make code Python 3 compatible.
PiperOrigin-RevId: 299961805
2020-03-09 16:19:53 -07:00
A. Unique TensorFlower
e002cc9a23 Automated refactoring to make code Python 3 compatible.
PiperOrigin-RevId: 299951850
2020-03-09 15:35:52 -07:00
A. Unique TensorFlower
fa9ed85f37 Automated refactoring to make code Python 3 compatible.
PiperOrigin-RevId: 299935369
2020-03-09 14:26:58 -07:00
Steve Chien
79bca5f1fc Fix documentation filenames so they can be properly displayed.
PiperOrigin-RevId: 299422855
2020-03-06 13:23:21 -08:00
A. Unique TensorFlower
f3672adf80 Explicitly disable Tensorflow v2 behaviors for all TF1.x binaries and tests
PiperOrigin-RevId: 299397784
2020-03-06 11:29:06 -08:00
Yanhua Sun
b0df24ef25 Explicitly replace "import tensorflow" with "tensorflow.compat.v1" for TF2.x migration
PiperOrigin-RevId: 297199727
2020-02-25 14:11:47 -08:00
A. Unique TensorFlower
5238ccd77b Update prerequisite to TF 1.14 in requirements.txt.
PiperOrigin-RevId: 297006998
2020-02-24 17:15:16 -08:00
woodyx218
d06340e1cf
Update imdb_tutorial.py 2020-02-21 09:35:47 -05:00
woodyx218
b13f2f6067
Update adult_tutorial.py 2020-02-21 09:35:18 -05:00
woodyx218
fd51a6e32c
Update movielens_tutorial.py
Remove empty line in import sections and import explicitly
2020-02-21 09:34:28 -05:00
woodyx218
b9b2e8670f
Move doc str below functions 2020-02-21 09:30:30 -05:00
woodyx218
fe82de2cfe
Rename research/imdb_tutorial.py to research/GDP_2019/imdb_tutorial.py 2020-02-21 00:50:57 -05:00
woodyx218
681a156f3f
Rename research/adult_tutorial.py to research/GDP_2019/adult_tutorial.py 2020-02-21 00:50:42 -05:00
woodyx218
f29f101b23
Move tutorial for IMDB dataset to research folder 2020-02-21 00:49:02 -05:00
woodyx218
5d69c692e1
Move tutorial for adult dataset to research folder 2020-02-21 00:48:16 -05:00
Galen Andrew
945075a136 Fix num_records in quantile_adaptive_clip_sum_query_test.
PiperOrigin-RevId: 292995170
2020-02-07 10:19:08 -08:00