Richard Levasseur
6248be8290
Internal Code Change
...
PiperOrigin-RevId: 557198768
2023-08-15 11:42:02 -07:00
Galen Andrew
67c9c2424c
Internal change.
...
PiperOrigin-RevId: 551648705
2023-07-27 14:55:51 -07:00
Shuang Song
a3e8a45559
Passes number of microbatches to DP model.
...
PiperOrigin-RevId: 512678620
2023-02-27 11:11:59 -08:00
Shuang Song
44dc40454b
Minor fix to tutorials.
...
PiperOrigin-RevId: 463145196
2022-07-25 12:07:46 -07:00
Michael Reneer
d16f020329
Fix usage of logging API.
...
PiperOrigin-RevId: 463123944
2022-07-25 10:48:31 -07:00
A. Unique TensorFlower
e826ec717a
Switch from a git_repository
rule to http_archive
for the DP accounting Bazel dependency. This is preferred, per https://docs.bazel.build/versions/main/external.html#repository-rules , to avoid depending on the system git
(the HTTP downloader is build into Bazel).
...
Also use the strip_prefix option to only pull in the accounting WORKSPACE, not the top-level Google DP project WORKSPACE. This allows us to align the import statements to work both when pulling in the `dp_acounting` dependency via Bazel and pip.
PiperOrigin-RevId: 459807060
2022-07-08 12:07:17 -07:00
A. Unique TensorFlower
eaa7354f00
Internal change.
...
PiperOrigin-RevId: 459620579
2022-07-07 15:48:25 -07:00
Michael Reneer
94beccf10e
Automated rollback of commit e32766cc73
...
PiperOrigin-RevId: 458498524
2022-07-01 10:34:33 -07:00
A. Unique TensorFlower
e32766cc73
Automated rollback of commit b16a0abf1c
...
PiperOrigin-RevId: 458478847
2022-07-01 08:52:40 -07:00
Michael Reneer
b16a0abf1c
Update TFPs dp_accounting
dependency.
...
PiperOrigin-RevId: 458307242
2022-06-30 13:57:42 -07:00
Galen Andrew
295e533e22
Internal change.
...
PiperOrigin-RevId: 455191950
2022-06-15 12:23:30 -07:00
Steve Chien
7a5f4eddb8
Internal change.
...
PiperOrigin-RevId: 455173202
2022-06-15 11:05:05 -07:00
Galen Andrew
db292fc5d8
Automated rollback of commit bb1b7a6a46
...
PiperOrigin-RevId: 454995196
2022-06-14 17:27:35 -07:00
Galen Andrew
bb1b7a6a46
Remove deprecated rdp_accountant. Please use RdpAccountant from the differential_privacy library.
...
PiperOrigin-RevId: 454964256
2022-06-14 15:02:34 -07:00
Galen Andrew
fca208e514
Finish migration of mnist_lr_tutorial to use differential_privacy library.
...
PiperOrigin-RevId: 453258715
2022-06-06 12:32:54 -07:00
Galen Andrew
5509adb296
Change README example to use Google DP for accounting instead of deprecated privacy/analysis/rdp_accountant functions.
...
PiperOrigin-RevId: 449820802
2022-05-19 13:29:57 -07:00
Galen Andrew
afe676135e
Migrate lm_dpsgd_tutorial from deprecated TFP rdp_accountant to Google DP.
...
PiperOrigin-RevId: 446846972
2022-05-05 16:31:54 -07:00
A. Unique TensorFlower
7eea74a6a1
COPYBARA_INTEGRATE_REVIEW= https://github.com/tensorflow/privacy/pull/230 from npapernot:hyperparam 8835b9c4072e3e598aa49d605e7643a2c2e65988
...
PiperOrigin-RevId: 446832781
2022-05-05 15:38:47 -07:00
Galen Andrew
81d5880702
Migrate accounting in tutorials to Google DP.
...
PiperOrigin-RevId: 444993855
2022-04-27 16:09:27 -07:00
Fabien Hertschuh
5493a3baf0
Explicitly import estimator from tensorflow as a separate import instead of
...
accessing it via tf.estimator and depend on the tensorflow estimator target.
PiperOrigin-RevId: 438419860
2022-03-30 16:05:01 -07:00
Michael Reneer
69d84d1892
Add TensorFlow Privacy BUILD and WORKSPACE files.
...
PiperOrigin-RevId: 429141704
2022-02-16 23:30:06 +00:00
Michael Reneer
28db674240
Ensure that TF 1.0 API is referenced at the call site in TensorFlow Privacy.
...
This change makes it easy to search for usage of TF 1.0 API and updates the TF imports across TFP to be written consistently.
PiperOrigin-RevId: 427043028
2022-02-07 16:06:22 -08:00
Michael Reneer
5dc3475e17
Fix lint errors in tensorflow_privacy/tutorials/walkthrough/README.md
.
...
PiperOrigin-RevId: 427030504
2022-02-07 15:17:11 -08:00
Michael Reneer
c3e7f08fa5
Update to import TF 2.0 in many TensorFlow Privacy Python modules.
...
PiperOrigin-RevId: 425901093
2022-02-02 09:17:30 -08:00
Michael Reneer
8a6827b27c
Update to use TF 2.0 API in TensorFlow Privacy:
...
tf.logging -> Removed for absl
tf.assert_type -> tf.debugging.assert_type
tf.assert_less_equal -> tf.debugging.assert_less_equal
tf.global_norm -> tf.linalg.global_norm
PiperOrigin-RevId: 425730344
2022-02-01 15:29:09 -08:00
Michael Reneer
943ef91ee9
Format TensorFlow Privacy files.
...
PiperOrigin-RevId: 424923635
2022-01-28 11:57:24 -08:00
Michael Reneer
07230a161a
Internal
...
PiperOrigin-RevId: 424922009
2022-01-28 11:50:35 -08:00
Michael Reneer
7396ad62da
Update TensorFlow Privacy to use Python 3 super()
.
...
PiperOrigin-RevId: 424916118
2022-01-28 11:26:34 -08:00
Michael Reneer
a749ce4e30
Remove TensorFlow Privacy __future__
imports.
...
Note: Exclude changes to the research directory.
PiperOrigin-RevId: 424650953
2022-01-27 10:37:22 -08:00
Michael Reneer
cfb1b881d8
Normalize scipy
imports in TensorFlow Privacy to be more friendly with strict dependencies and lint.
...
PiperOrigin-RevId: 424649853
2022-01-27 10:33:23 -08:00
Galen Andrew
d9236d5619
Remove PrivacyLedger which will soon be replaced by DpEvent and PrivacyAccountant.
...
PiperOrigin-RevId: 393147667
2021-08-26 10:00:15 -07:00
Mark Daoust
bd69c70965
Add a skeleton g3doc directory.
...
Move notebook files to g3doc.
- Some style and code fixes for notebooks.
Add api-reference generation script.
PiperOrigin-RevId: 372233296
2021-05-05 16:41:40 -07:00
A. Unique TensorFlower
aed49d0087
Merge pull request #147 from TheSalon:master
...
PiperOrigin-RevId: 351680116
2021-01-13 15:42:04 -08:00
Nicholas Vadivelu
9d871b28c1
Add keras_models example to tutorials.
2021-01-05 17:43:00 -05:00
Steve Chien
f0daaf085f
Minor update to mnist_lr_tutorial.py
to avoid (some) deprecated items.
...
PiperOrigin-RevId: 339327388
2020-10-27 14:16:12 -07:00
Steve Chien
3240a71965
Update Keras tutorial in light of recent changes to Keras Optimizer.
...
PiperOrigin-RevId: 326346140
2020-08-12 17:13:28 -07:00
A. Unique TensorFlower
191f2461c5
[tfds] Fix tfds.as_numpy which now returns a reusable iterable.
...
`next(ds)` -> `next(iter(ds))`
Context: https://github.com/tensorflow/datasets/issues/2270
PiperOrigin-RevId: 324951455
2020-08-04 22:06:20 -07:00
Steve Chien
1a959eec34
Fix import of tutorials common module.
...
PiperOrigin-RevId: 321789833
2020-07-17 09:07:30 -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
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
A. Unique TensorFlower
2301931725
Fix issue with importing tensorflow.compat.v1.
...
PiperOrigin-RevId: 300175680
2020-03-10 14:16:46 -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
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
woodyx218
fd51a6e32c
Update movielens_tutorial.py
...
Remove empty line in import sections and import explicitly
2020-02-21 09:34:28 -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