Commit graph

215 commits

Author SHA1 Message Date
Steve Chien
b892d650cf Tests for Eager mode.
PiperOrigin-RevId: 236382269
2019-03-01 14:48:29 -08:00
Nicolas Papernot
517584d7a6 add Keras tutorial
PiperOrigin-RevId: 236199395
2019-02-28 14:35:28 -08:00
Nicolas Papernot
0c691085e1 missing reduce_mean
PiperOrigin-RevId: 235858614
2019-02-26 22:56:29 -08:00
Galen Andrew
df6f065925 Correct license author string.
PiperOrigin-RevId: 235777655
2019-02-26 13:08:10 -08:00
Nicolas Papernot
c2d4b17881 Add support for the Eager mode
PiperOrigin-RevId: 235733975
2019-02-26 09:20:28 -08:00
Nicolas Papernot
bfba26801d Closes #16
PiperOrigin-RevId: 235070241
2019-02-21 14:34:27 -08:00
Steve Chien
f37c9d1ea1 Use mean loss within each microbatch.
PiperOrigin-RevId: 233832864
2019-02-13 14:42:12 -08:00
Eugene Brevdo
72305bcb10 Update use of tf.CriticalSection.
PiperOrigin-RevId: 233168852
2019-02-08 20:08:35 -08:00
Steve Chien
d75f1b80ba Fix copybara to limit some transformations to the beginning of the line.
PiperOrigin-RevId: 233151293
2019-02-08 16:55:57 -08:00
A. Unique TensorFlower
4d0ab48c35 Add privacy ledger.
The privacy ledger keeps a record of all sampling and query events for analysis post hoc by the privacy accountant.

PiperOrigin-RevId: 233094012
2019-02-08 11:21:43 -08:00
A. Unique TensorFlower
36d9959c19 internal change
PiperOrigin-RevId: 233093203
2019-02-08 11:17:09 -08:00
Ilya Mironov
d435fcbf9a Updating README.md to reflect ReLU activation function.
+ clean-up of mnist_dpsgd_tutorial

PiperOrigin-RevId: 232707393
2019-02-06 11:06:31 -08:00
Nicolas Papernot
8c99088cf1 add ReLUs to tutorial model
PiperOrigin-RevId: 232073877
2019-02-01 18:43:35 -08:00
A. Unique TensorFlower
098c5220b5 Remove test broken by upstream tf changes.
tf.nest.map_structure_up_to has changed so that map_structure_up_to(x, func, x, y) no longer raises an error when y is longer than x, for example x=[1,2], y=[1,2,3]. This broke one of our tests for nested query. Remove the test until (if and when) the old, more reasonable, behavior is restored.

PiperOrigin-RevId: 232057385
2019-02-01 16:22:05 -08:00
Ilya Mironov
ff295b6a70 Adding no-privacy baseline (dpsgd=False) to README.md.
PiperOrigin-RevId: 231004783
2019-01-25 18:37:11 -08:00
Nicolas Papernot
668888c1a6 change kernel initializer to fix dpsgd=False tutorial
PiperOrigin-RevId: 230931823
2019-01-25 10:59:51 -08:00
A. Unique TensorFlower
4f9cc8ef3e 1. Adding a CLI script for computing privacy loss for DP-SGD.
2. Fixing typos in the MNIST tutorial.

PiperOrigin-RevId: 230608908
2019-01-23 14:56:27 -08:00
Galen Andrew
c8cb3c6b70 General cleanup.
1. Rename PrivateQuery to DPQuery.
2. Move construction of DPQuery to outside of optimizer.
3. Remove PrivateAverageQuery and PrivateSumQuery, and rename DPQuery's 'get_query_result' method to 'get_noised_result'. Rename private_queries.py to dp_query.py.
4. Remove thrice-replicated run_query function from the test classes and replace with a single function in new test_utils.py.
5. Add functions gaussian_sum_query_from_noise_multplier and gaussian_average_query_from_noise_multplier.

PiperOrigin-RevId: 230595991
2019-01-23 14:41:44 -08:00
Steve Chien
7e2d796bde Minor fixes for Python 2/3 compatibility.
PiperOrigin-RevId: 230022543
2019-01-18 17:33:22 -08:00
Peter Kairouz
0b56f7c016 Add optional argument for weighted sum and weighted average queries.
PiperOrigin-RevId: 230021515
2019-01-18 17:25:58 -08:00
A. Unique TensorFlower
047e1eef0e Updating README.md for the tutorial. Included discussion of learning_rate and target accuracy/privacy for several settings of training parameters.
PiperOrigin-RevId: 230016922
2019-01-18 16:49:24 -08:00
Alex Pine
6c5c39c4f2 Created the optional unroll_microbatches parameter for the DpOptimizerClass as a workaround for b/122613513.
PiperOrigin-RevId: 229955297
2019-01-18 11:51:44 -08:00
A. Unique TensorFlower
87ec1a2e77 Merge pull request #14 from badbayesian:master
PiperOrigin-RevId: 229631674
2019-01-16 14:56:25 -08:00
Nicolas Papernot
4487099296 Closes #11
PiperOrigin-RevId: 229430188
2019-01-15 13:32:56 -08:00
badbayesian
e86cf16986 FIX: python3 compatibility 2019-01-15 14:54:28 -06:00
badbayesian
4c9971d4a8 FIX: python3 compatibility 2019-01-15 14:52:53 -06:00
Peter Kairouz
5ee12803f3 Create NoPrivacySumQuery and NoPrivacyAverageQuery.
PiperOrigin-RevId: 229273971
2019-01-14 17:39:36 -08:00
Nicolas Papernot
93e9585f18 Add missing licenses.
PiperOrigin-RevId: 229241117
2019-01-14 16:02:35 -08:00
A. Unique TensorFlower
e1ccf56492 Import PATE code from tensorflow/models.
PiperOrigin-RevId: 229239903
2019-01-14 14:48:40 -08:00
Nicolas Papernot
4c1f3c07f4 Modify loss passed to optimizer when dpsgd is False in MNIST tutorial
PiperOrigin-RevId: 229233829
2019-01-14 12:38:20 -08:00
Nicolas Papernot
89ca3f2a06 Format in main README
PiperOrigin-RevId: 229233679
2019-01-14 12:37:35 -08:00
Nicolas Papernot
398d1d052f Closes #4
PiperOrigin-RevId: 229212766
2019-01-14 10:55:15 -08:00
Steve Chien
72d13e628f Copybara test
PiperOrigin-RevId: 228965125
2019-01-11 16:26:50 -08:00
Steve Chien
8635181255 Internal change.
PiperOrigin-RevId: 228958118
2019-01-11 16:19:15 -08:00
Steve Chien
c30f6d776e Add test to ensure DP optimizers work with tf.estimator Estimators.
PiperOrigin-RevId: 228920704
2019-01-11 15:50:56 -08:00
Steve Chien
22c8b76c04 Remove extra lines.
PiperOrigin-RevId: 228596935
2019-01-09 15:12:30 -08:00
A. Unique TensorFlower
666a5e0fe6 update year in README
PiperOrigin-RevId: 228586249
2019-01-09 15:12:20 -08:00
schien1729
24922389d1 Merge pull request #12 from npapernot:master
PiperOrigin-RevId: 228583727
2019-01-09 14:03:32 -08:00
Nicolas Papernot
2885c51e7d dummy PR 2 2019-01-09 13:10:11 -08:00
schien1729
3b4ddf6914 Merge pull request #3 from carlini:master
PiperOrigin-RevId: 228556799
2019-01-09 11:40:16 -08:00
Steve Chien
233e03c72d Automated rollback of commit 2bd9469267
PiperOrigin-RevId: 228426305
2019-01-08 18:04:46 -08:00
Steve Chien
932190c4e5 Automated rollback of commit a7190fc1ed
PiperOrigin-RevId: 228425879
2019-01-08 18:04:36 -08:00
schien1729
2bd9469267 Merge pull request #10 from npapernot:master
PiperOrigin-RevId: 228418175
2019-01-08 17:57:44 -08:00
Steve Chien
a7190fc1ed Fix python3 bug: range() is no longer list. From @carlini
PiperOrigin-RevId: 228237806
2019-01-08 17:38:10 -08:00
Nicolas Papernot
b2e9e58780 dummy PR 2019-01-08 15:07:01 -08:00
schien
251d6298c6 Fix Python 3 compatibility issues
PiperOrigin-RevId: 228232503
2019-01-07 14:09:31 -08:00
Steve Chien
555e8e293a
Merge pull request #9 from tensorflow/revert-1-python3-fixes
Revert "Fix Python 3 compatibility issues"
2019-01-07 13:53:28 -08:00
Steve Chien
1689cf3a77
Revert "Fix Python 3 compatibility issues" 2019-01-07 13:44:35 -08:00
Steve Chien
8c53cf8f75
Merge pull request #1 from cclauss/python3-fixes
Fix Python 3 compatibility issues
2019-01-07 13:43:22 -08:00
A. Unique TensorFlower
29fac758af - Fixing dependencies in setup.py and requirements.txt.
PiperOrigin-RevId: 227742524
2019-01-04 15:58:19 -08:00