A. Unique TensorFlower
6312a853d8
Merge pull request #119 from lwsong:master
...
PiperOrigin-RevId: 330658958
2020-09-08 22:44:06 -07:00
Vadym Doroshenko
8f3a61b50d
Fixing calculating loss on logits.
...
PiperOrigin-RevId: 329966058
2020-09-03 12:06:29 -07:00
Vadym Doroshenko
f4fc9b2623
Updating comments to run_attack() and making non-API functions to be private.
...
PiperOrigin-RevId: 329951618
2020-09-03 10:56:31 -07:00
A. Unique TensorFlower
2f0a078dd9
Adds Privacy Report metadata to AttackResults.
...
PiperOrigin-RevId: 329871255
2020-09-03 01:05:12 -07:00
Steve Chien
8d89ef0a4b
Update version to 0.5.1, and add dependence on tensorflow-estimator.
...
PiperOrigin-RevId: 329822203
2020-09-02 17:31:32 -07:00
Liwei Song
0e1c1eeef3
add entropy tests
2020-09-02 11:37:12 -04:00
Liwei Song
9b2e6a55b6
add entropy feature
2020-08-31 16:17:19 -04:00
Liwei Song
e547a10eec
fix softmax issue
2020-08-31 15:24:46 -04:00
A. Unique TensorFlower
f677c9c440
Adding contribution guidelines to TF Privacy
...
PiperOrigin-RevId: 328740117
2020-08-27 08:21:03 -07:00
Shuang Song
f90c78bd54
Update tf_estimator_evaluation and keras_evaluation to new API.
...
PiperOrigin-RevId: 328195220
2020-08-24 13:03:28 -07:00
A. Unique TensorFlower
7a77d5d92c
Modify Colab to use the new membership inference API.
...
PiperOrigin-RevId: 327805944
2020-08-21 07:21:38 -07:00
Shuang Song
d23772e163
Returns attack results as a Pandas data frame.
...
PiperOrigin-RevId: 327675978
2020-08-20 12:27:43 -07:00
A. Unique TensorFlower
52c1f8fdfe
Overrides default __str__ methods.
...
PiperOrigin-RevId: 327423772
2020-08-19 06:49:14 -07:00
Steve Chien
6dccd9b537
Fix bug in keras optimizers where tape was not being used with tensor (as opposed to callable) losses.
...
PiperOrigin-RevId: 327276721
2020-08-18 12:00:20 -07:00
A. Unique TensorFlower
193ac3b1c8
Adds more validation checks for AttackInputData.
...
PiperOrigin-RevId: 327191245
2020-08-18 02:34:58 -07:00
Steve Chien
a69b013390
Add head for multi-label estimators in TF estimator framework.
...
PiperOrigin-RevId: 327048185
2020-08-17 10:28:45 -07:00
Galen Andrew
d939b22463
Bump version number.
...
PiperOrigin-RevId: 326927560
2020-08-16 15:12:13 -07:00
Steve Chien
d72e3400b7
Add DP-enabled version of DNNClassifier.
...
PiperOrigin-RevId: 326482309
2020-08-13 11:03:46 -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
f8515dfd71
Replaces predict with predict_proba.
...
PiperOrigin-RevId: 326227257
2020-08-12 07:24:29 -07:00
A. Unique TensorFlower
59192e6f5c
Make validation that labels are integers.
...
PiperOrigin-RevId: 326216555
2020-08-12 06:00:31 -07:00
A. Unique TensorFlower
0fd06493cc
Make sklearn classifiers in parallel.
...
It's done only for those classifiers that run a significant amount of time.
PiperOrigin-RevId: 326215987
2020-08-12 05:53:46 -07:00
Galen Andrew
37ff5d502e
Add derive_metrics function to DPQuery.
...
derive_metrics is a new function in the public API so customers can query aspects of the global state that change, such as the clip when using adaptive clipping.
PiperOrigin-RevId: 326174158
2020-08-11 22:58:59 -07:00
A. Unique TensorFlower
06bb047525
Consistent string formatting.
...
PiperOrigin-RevId: 326007570
2020-08-11 06:17:36 -07:00
A. Unique TensorFlower
680aaa4499
Simple ROC curve plotting for membership inference attack results.
...
PiperOrigin-RevId: 325982344
2020-08-11 02:29:15 -07:00
Steve Chien
99afaed68e
Refactor of common functions in binary and multiclass heads.
...
PiperOrigin-RevId: 325957037
2020-08-10 22:30:24 -07:00
Steve Chien
3a641e077e
Add DP-enabled binary-class head and multi-class heads for Estimator.
...
PiperOrigin-RevId: 325921076
2020-08-10 17:19:54 -07:00
A. Unique TensorFlower
43a0e4be8a
The new API for the membership inference attack.
...
1. Colab and Keras/TF estimator integration still use the old API and will be updated in the subsequent CLs.
2. After dropping the old API in membership_inference_attack.py, membership_inference_attack_new.py will be renamed in membership_inference_attack.py.
PiperOrigin-RevId: 325823046
2020-08-10 09:44:21 -07:00
A. Unique TensorFlower
68651eeddc
Internal change.
...
PiperOrigin-RevId: 325768017
2020-08-10 02:51:11 -07:00
A. Unique TensorFlower
40419b56a3
Internal change.
...
PiperOrigin-RevId: 325423652
2020-08-07 06:12:18 -07:00
Steve Chien
5ad8676d38
Automated rollback of commit 5433436b86
...
PiperOrigin-RevId: 325308999
2020-08-06 14:19:46 -07:00
Steve Chien
5433436b86
Change GaussianSumQuery to not convert hyperparameters from Python numbers to Tensors.
...
PiperOrigin-RevId: 325251302
2020-08-06 09:56:40 -07:00
A. Unique TensorFlower
efca03b593
Internal change.
...
PiperOrigin-RevId: 325249654
2020-08-06 09:48:25 -07:00
A. Unique TensorFlower
08f960a1af
Internal change.
...
PiperOrigin-RevId: 325210305
2020-08-06 05:25:58 -07:00
Steve Chien
e91c820b2a
Adds a Keras optimizer version of DP-SGD. New optimizers are subclasses of tf.keras.optimizers.Optimizer and override both _compute_gradients and get_gradients.
...
PiperOrigin-RevId: 325124698
2020-08-05 21:20:59 -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
A. Unique TensorFlower
29651216cd
Internal change.
...
PiperOrigin-RevId: 324591262
2020-08-03 12:08:41 -07:00
A. Unique TensorFlower
0a1cbb5b7b
Internal change.
...
PiperOrigin-RevId: 324574332
2020-08-03 12:08:33 -07:00
Thomas O'Malley
d5e34b77c8
Allow loss to be passed as a Tensor to Optimizer.minimize
...
PiperOrigin-RevId: 323895500
2020-07-29 22:24:02 -07:00
Shuang Song
cea9e01670
A callback and a function to be called in the end of training for keras to perform membership inference attack.
...
PiperOrigin-RevId: 323805663
2020-07-29 22:23:53 -07:00
A. Unique TensorFlower
dcbfaa3f5e
Internal change.
...
PiperOrigin-RevId: 323529635
2020-07-29 22:23:38 -07:00
A. Unique TensorFlower
f318fbb140
Internal change.
...
PiperOrigin-RevId: 322996754
2020-07-24 08:03:51 -07:00
Shuang Song
267ea7f90d
A separate tensorboard function.
...
PiperOrigin-RevId: 322820408
2020-07-23 10:55:49 -07:00
A. Unique TensorFlower
2ec0f36d1e
Added support for Keras optimizers and serialization.
...
PiperOrigin-RevId: 322603030
2020-07-22 10:29:03 -07:00
Steve Chien
87c01eb2f5
Enable optimizers to handle variables whose gradients are None.
...
PiperOrigin-RevId: 322193798
2020-07-20 11:59:20 -07:00
Steve Chien
1a959eec34
Fix import of tutorials common module.
...
PiperOrigin-RevId: 321789833
2020-07-17 09:07:30 -07:00
A. Unique TensorFlower
8ec709e3d7
Internal change.
...
PiperOrigin-RevId: 321768596
2020-07-17 06:37:46 -07:00
A. Unique TensorFlower
3549d23da3
Internal change.
...
PiperOrigin-RevId: 321765113
2020-07-17 06:07:53 -07:00
A. Unique TensorFlower
510dd207d5
Internal change.
...
PiperOrigin-RevId: 321742857
2020-07-17 02:43:53 -07:00
Shuang Song
a0e1b72838
A training hook and a function to be called in the end of training for tf estimator to perform membership inference attack.
...
PiperOrigin-RevId: 321648371
2020-07-16 14:39:09 -07:00